wood burning stoves*
The moose likes JDBC and the fly likes registering the database driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "registering the database driver" Watch "registering the database driver" New topic
Author

registering the database driver

biswajit ray
Ranch Hand

Joined: Nov 30, 2005
Posts: 30
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

Joined: Feb 14, 2007
Posts: 47
What are you trying to do?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: registering the database driver