Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

classpath and JDBC driver problem

843859May 27 2008 — edited Nov 20 2014
hello everyone!

i have problem with mysql jdbc driver.
i set classpath in system variables as follows:

C:\Sun\SDK\jdk\jre\lib\ext\mysql-connector-java-5.1.6-bin.jar;.; C:\Program Files\Java\jre1.6.0_06\lib\ext\QTJava.zip

but i take an error: java.lang.ClassNotFoundException: com.mysql.jdbc.driver when i run the application out of jdk bin folder.

before setting mysql driver classpath, the classpath was:

.; C:\Program Files\Java\jre1.6.0_06\lib\ext\QTJava.zip

Can anyone help me? do i have any mistakes?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2008
Added on May 27 2008
9 comments
266 views