Re: How to set Classpath for MySQL
because you dont have the jdbc driver in your class path.
see
http://www.netbeans.org/kb/55/using-netbeans/project_setup.html#96961 for help
then you need to load the driver before you connect to it, see below:
try
{
//Class.forName("org.gjt.mm.mysql.Driver").newInstance(); should also work.
Class.forName ("com.mysql.jdbc.Driver");
}
catch(Exception e)
{
System.out.println("Error: " + e);
}
Subject
Written By
Posted
December 04, 2007 05:39AM
Re: How to set Classpath for MySQL
January 30, 2008 01:09AM
September 12, 2008 09:18AM
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.