Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver [message #510343] Wed, 27 January 2010 05:23 Go to next message
Eclipse UserFriend
hallo everybody
i wrote a jtable to visualize the data in a sql-table. running the application within eclipse all worked well, but when i create a runnable jar-file and start it from the shell with java -jar i got: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

all classes and even the mysql-connector-java-5.1.8-bin are in the same path where i start java -jar myapp.jar. i'm using java se1.6 and eclipse galileo.

i told eclipse to copy the required libraries into a sub-folder next to the generated JAR, so eclipse created the folder but there's nothing in. but even if i copy the jar mysql-connector to this folder the application didn't start. need help.

[Updated on: Wed, 27 January 2010 05:24] by Moderator

Re: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver [message #510537 is a reply to message #510343] Wed, 27 January 2010 13:54 Go to previous message
Eclipse UserFriend
finally I found a solution with ant. see the solution here.
Previous Topic:Different text fonts for read only files
Next Topic:The refactor-rename of java package--encoding problem
Goto Forum:
  


Current Time: Fri Mar 28 13:04:35 EDT 2025

Powered by FUDForum. Page generated in 0.03909 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top