Hi all,
I got the "Exception in thread "main" java.lang.NoClassDefFoundError:
Test/class" error message, read the mailing list responses and added "."
to my classpath and all worked. Then I made a change to the program
and now get the error again.
My CLASSPATH is: CLASSPATH=/usr3/java2/mm.mysql.jdbc-2.0pre4:.
The test program is:
import java.sql.*;
public class Test
{
public static void main(String[] Args)
{
try {
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
System.out.println("Driver loaded.");
}
catch (Exception E) {
System.err.println("Unable to load driver.");
E.printStackTrace();
}
}
}
Why can't I get past the NoClassDefFound error??
Thanks
George