I am using Microsoft SQL Server JDBC Driver to insert student registration fields for leaing purpose to database.I had created that java application sucessfully and that application is working fine when I am ruing it as a java program. Now I converted that Java program to jar file while converting Java program to jar file I took all precautions like copying exteal jar files to lib folder and to provide Native library path to Jdbc driver jar file. But still when I am ruing my jar file I am getting the following set of errors, please guide me:
Where is your MySQL JDBC Driver?
java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at bean.DbCoectClass.jdbcCoction(DbCoectClass.java:16)
at Main.main(Main.java:21)
My one specific request if possible please also tell why in the error text it is asking for MySQL JDBC Driver while I am using MSSQL driver.Please note that I am using Java 8 version and I am currently using compatible version of jar file.
