akash
akash

Reputation: 1801

Adding com.jdbc.odbc.Driver via terminal

when i try to run a project

java -jar test.jar    

i get the following exception

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

how to add mysql-connector-java-5.1.22-bin.jar in classpath

Upvotes: 0

Views: 737

Answers (2)

Arun R U
Arun R U

Reputation: 73

You should be having jdbc driver classes in your classpath.

Upvotes: 1

John Woo
John Woo

Reputation: 263933

Maybe you have forget to add the library in your project. Please see the links below

Upvotes: 1

Related Questions