dcsimg
JDBC classpath
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Desmond_Chor
Posted On:   Wednesday, January 8, 2003 10:17 PM

Exception in thread "main" java.lang.NoClassDefFound Error: TestMySQL is display when i run the program.
try {
Class.forName ( "org.gjt.mm.mysql.Driver" );
System.out.println ( "MySQL Driver Found" );
} catch ( java.lang.ClassNotFoundException e ) {
System.out.println("MySQL JDBC Driver not found ... ");
throw ( e );
}

i have added the bin.jar file in my enviroment variable but it still dun work. i have try adding it in my jrelibext and it also dun work.
anyone can help?? thanx

Re: JDBC classpath

Posted By:   Daniel_Baylon  
Posted On:   Friday, January 24, 2003 03:40 PM

Sometimes when you download mySQL driver, .jar file contains inside another .jarfile which is real jdbc driver.

About | Sitemap | Contact