0

I have a jar file which runs perfect in dis folder but when I copy it to desktop and run in from cmd I got

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

I already include mysql library as shown below enter image description here

enter image description here

any idea please?

2
  • Please attach the jar running command. You should attach external library like : java -classpath /path/to/jdbc -jar PayRoll_3.jar Commented Mar 14, 2018 at 10:50
  • add mysql jar to classpath as well Commented Mar 15, 2018 at 6:45

1 Answer 1

0

I found the solution here, wish it would be useful for other people http://www.oracle.com/technetwork/articles/javase/index-139904.html

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.