Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Error creating class: com.mysql.jdbc.Driver

Reply
Thread Tools

Error creating class: com.mysql.jdbc.Driver

 
 
leo
Guest
Posts: n/a
 
      02-07-2005
I'm using netbeans4.0 IDE for a mySQL jbdc application. Within
netbeans the application works fine, I can connect, read and write to
the db. However when I run from the jar directly I get "Error creating
class: com.mysql.jdbc.Driver" when I try to create the driver using
Class.forName("com.mysql.jdbc.Driver");

I did put mysql-connector-java-3.1.6-bin.jar in the classpath for
compiling sources. Also when running from the command line prompt I've
added the -classpath including the full directory and name of the
connector jar file. Still doesn't work. What am I doing wrong?


leo
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error creating control..Server tag error w/ custom control on webf =?Utf-8?B?RGF2ZQ==?= ASP .Net 1 07-20-2006 08:39 PM
"Error Creating Control" when creating a custom control (Design Time). Can't see tooltip message. Ravi Ambros Wallau ASP .Net Web Controls 0 06-01-2005 02:36 PM
"Error Creating Control" when creating a custom control (Design Time). Can't see tooltip message. Ravi Ambros Wallau ASP .Net 0 06-01-2005 02:36 PM
Error Creating Control: Parser Error DocHeader does not have a property named 'cc3:MyItems' ~~~ .NET Ed ~~~ ASP .Net 0 11-10-2004 05:24 PM
Error Creating Control: Parser Error DocHeader does not have a property named 'cc3:MyItems' ~~~ .NET Ed ~~~ ASP .Net Building Controls 0 11-10-2004 05:24 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57