Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error when using mm.mysql.driver

 
PatrickDuck
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I using the mm.mysql-2.0.4-bin.jar for making the connection between the Tomcat/Apache and MySQL
However, when I run the statement below
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
there are an error occurs
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver

What the problem of this situation ?
The problem of classpath setting ? if yes, what is the classpath ?
Please help !!!
thanks
 
Terence Doyle
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
The class path setting should be

Hope that helps,

------------------
Terry Doyle
Sun Certified Programmer for Java 2 Platform
 
PatrickDuck
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx very much Terry Doyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic