18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Shows exception while connecting SQL SERVER 2008 DB via Sahi

ShilpaHSShilpaHS Members
edited November -1 in Sahi - Open Source
exception: java.lang.UnsupportedOperationException: Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.

Class path set in start_dashboard.bat as
SET SAHI_EXT_CLASS_PATH=%SAHI_HOME%\extlib\db\sqljdbc.jar

Also tried with sqljdbc4.jar - shows the same exception

placed DB string as
var $db =_getDB("com.microsoft.sqlserver.jdbc.SQLServerDriver","jdbc:sqlserver://ip address:1433;databasename","username","password");

Can please anyone guide me on this to connect to DB?
Sign In or Register to comment.