• Post Reply Bookmark Topic Watch Topic
  • New Topic

registering the database driver

 
biswajit ray
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why can�t the following code do the job of �locate, load, and link�?

org.gjt.mm.mysql.Driver driver = new org.gjt.mm.mysql.Driver();

will it locate , load and link by executing the static block? what is the problem in it?
 
sathish kumar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you trying to do?
 
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!