Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to load the db driver from jar file?

 
Kay Tracid
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 395
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kay Tracid
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, but...
That will not work, because I cant change the classpath on the client and at runtime.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic