• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!