registerDriver()
With Connector/J 3.1.8 our program is not recognizing org.gjt.mm.mysql.Driver, whcih we need to use in order to connect to the MySQL database. The lines of code we've tried are:
Class.forName("com.mysql.jdbc.Driver").newInstance();
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
DriverManager.registerDriver(new org.gjt.mm.mysql.Driver());
In the first two, it gives a "class does not exist error". In the last, it just won't compile. It gets stuck on gjt. I have the jar file for Connector/J in the project directory in Eclipse on Windows XP Pro. Any ideas?
Subject
Written By
Posted
registerDriver()
May 09, 2005 07:17PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.