wood burning stoves 2.0*
The moose likes JDBC and the fly likes How to load the db driver from jar file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to load the db driver from jar file?" Watch "How to load the db driver from jar file?" New topic
Author

How to load the db driver from jar file?

Kay Tracid
Ranch Hand

Joined: Mar 06, 2002
Posts: 148
Hi,
I have to connect to a mysql database. I want to load the driver from a jar file, because I want to use java web start.
Is that possible?
Thanks!
L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
Hi,
If I am right, then put the path of the jar in file in your classpath and try loading the driver class from your application.


SCJP, SCWCD
Kay Tracid
Ranch Hand

Joined: Mar 06, 2002
Posts: 148
Thanks, but...
That will not work, because I cant change the classpath on the client and at runtime.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to load the db driver from jar file?