File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mysql problems in netbeans

 
appu sharma
Ranch Hand
Posts: 104
Java Netbeans IDE Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I try to run following code in netbeans as a IDE and mysql as database.
I have added my sql connector in CLASSPATH and tool\libraries in netbeans and still getting the error
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
here is the code

 
appu sharma
Ranch Hand
Posts: 104
Java Netbeans IDE Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and here is the stack trace error
 
Eswar Nec
Ranch Hand
Posts: 105
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What are jar files added in your projects?

Add mysqljdbc.jar in your project
 
appu sharma
Ranch Hand
Posts: 104
Java Netbeans IDE Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eswar Nec wrote:Hi,

What are jar files added in your projects?

Add mysqljdbc.jar in your project

mysql-connector-java-5.0.4-bin.jar this jar file and what is mysqljdbc.jar file???
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic