• Post Reply Bookmark Topic Watch Topic
  • New Topic

where to place jdbc jar for mysql

 
ricky gonzalez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I was wondering where to put the jdbc jar for mysql?
Thanks!
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All jar files need to be on the classpath. The classpath will need to be updated to contain the actual jar file.
Example:
classpath=.;c:\java\lib;c:\java\lib\mysql.jar
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or if you are using Java 2, you can put jars in the jre/lib/ext directory and they will be picked up automatically.
 
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!