Using MySQL ODBC 5.3
Unicode Driver how to connect java and odbc?
I am using Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")
and getting ClassNotFoundException
how to resolve this?
Asked
Active
Viewed 79 times
0

Madhawa Priyashantha
- 9,633
- 7
- 33
- 60

Paridhi Jain
- 9
- 1
-
Check the jar which are you using. – Darshan Jul 15 '15 at 11:07
-
Can you please paste the stack trace ? – Suresh Atta Jul 15 '15 at 11:09
-
3If you are using Java 8: the `JdbcOdbcDriver` has been removed. Why don't you use the MySQL JDBC driver (Connector/J) instead? – Mark Rotteveel Jul 15 '15 at 11:10
-
Please check : http://stackoverflow.com/questions/21955256/manipulating-an-access-database-from-java-without-odbc – ooozguuur Jul 15 '15 at 11:11
-
Related: http://stackoverflow.com/questions/23428747/classnotfoundexception-when-trying-to-connect-to-accdb-file-via-jdbc-odbc-in-ja?rq=1 – Mark Rotteveel Jul 15 '15 at 11:12
2 Answers
0
You can get the java connector for MySQL from here http://dev.mysql.com/downloads/connector/j. and then load it as Class.forName("com.mysql.jdbc.Driver");

Kibadachi
- 155
- 6
0
Add the jar file to your projects in build path And copy the file to WEB-INF/lib directory

Ravinderz
- 1
- 3