Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JDBC and the fly likes mysql problems in netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "mysql problems in netbeans" Watch "mysql problems in netbeans" New topic
Author

mysql problems in netbeans

appu sharma
Ranch Hand

Joined: Sep 20, 2009
Posts: 104

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



It doesn't matter if you win by an inch or a mile; winning's winning.
appu sharma
Ranch Hand

Joined: Sep 20, 2009
Posts: 104

and here is the stack trace error
Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105
Hi,

What are jar files added in your projects?

Add mysqljdbc.jar in your project


Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
appu sharma
Ranch Hand

Joined: Sep 20, 2009
Posts: 104

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???
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: mysql problems in netbeans
 
Similar Threads
Novice in JDBC
searching database
2 errors i cannot find!
Connection Troubles
JTable type yes/no