I am new to java and am currently stuck. I made a database in SQL Server and as i am using JDK 8, so i downloaded the official SQL sqljdbc4.jar file and also the required .dll file and added the .jar file to the libraries. But still i am getting this error,
Aug 27, 2015 4:34:14 PM com.microsoft.sqlserver.jdbc.SQLServerConnection
SEVERE: Java Runtime Environment (JRE) version 1.8 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.
My connection code:
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
String connectionUrl = "jdbc:sqlserver://ACER-PC\\SQLEXPRESS:49179;databaseName=EduHub;integratedSecurity=true";
Connection con = DriverManager.getConnection(connectionUrl);