Re: How to set Classpath for MySQL
Posted by: Pratap Saini
Date: January 29, 2008 04:16AM

Sir,
I am using the Java Net beans IDE 6.0, i want to access the Mysql database in JAVA programming in the platform of Linux (Fedora 7).
I have install JDK 6.0 and NetBeans IDE 6.0.
I can connect the database using the Mysql driver/j (com.mysql.Driver) or (org.gjt.mm.mysql.Driver). The database is connected in the Service tool means Databases window. But, when i have write the code in an editor and connect the database of mysql. Then i found an error

java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
at java.net.URLClassLoader$1.run (URLClassLoader.java:200)
.......
......... etc. etc...


How can i solve this problem please mail me as soon as possible.

Options: ReplyQuote


Subject
Written By
Posted
December 04, 2007 05:39AM
Re: How to set Classpath for MySQL
January 29, 2008 04:16AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.