Starting with Java 8, the JDBC-ODBC Bridge will no longer be included with the JDK.
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); // classNotFoundException is thrown
Is there any other solution connecting JDBC-ODBC Bridge?
We can still use JDBC-ODBC Bridge in java 8 too, just follow this simple recipe:
Copy sun\jdbc and sun\security\action folders out, keep the folder structure. i.e., you should have the folder structure like below:
Sun --> Security --> Action
--> JDBC
Open a CMD window. Go to the parent folder of Sun folder. Run the command: jar -cvf jdbc.jar sun
lib
folder. If that doesn't work try the lib\ext
folder.