0

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?

Madhawa Priyashantha
  • 9,208
  • 7
  • 28
  • 58

2 Answers2

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
  • 145
  • 6
0

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

Ravinderz
  • 1
  • 3