Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mysql problems in netbeans

 
appu sharma
Ranch Hand
Posts: 104
Java Netbeans IDE Windows XP
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and here is the stack trace error
 
Eswar Nec
Ranch Hand
Posts: 105
  • 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
  • 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???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic