• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.classnotfoundexception com.mysql.jdbc.driver command line  RSS feed

 
feras almasri
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone.

I'm always facing a problem when I try to run the code from the commend line even thought if I used this commend to build up the paths



 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch. That doesn't run any code, it compiles it; is that what you want to do?

I'm not sure if the classpath works that way; try "-classpath C:\Users\fedail\Jworkspace\gawsCS2\mysql-connector-java-5.1.27-bin.jar;." - without the double quotes.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!