registerDriver()
Posted by: Sean Breslin
Date: May 09, 2005 07:17PM

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?

Options: ReplyQuote


Subject
Written By
Posted
registerDriver()
May 09, 2005 07:17PM
May 09, 2005 07:43PM
May 09, 2005 07:56PM
May 09, 2005 08:07PM
May 09, 2005 08:51PM
May 09, 2005 09:04PM
May 10, 2005 11:17AM
May 10, 2005 12:34PM
May 10, 2005 12:59PM
May 10, 2005 01:19PM
May 10, 2005 01:30PM
May 10, 2005 01:44PM
May 10, 2005 01:52PM
May 10, 2005 02:05PM
May 10, 2005 02:22PM


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.