I'm trying to get MySQL and Eclipse with connector j to work. I've installed MySQL 5.0.x and it's all working well, but I don't know where to put the connector-J.xxx.jar file so I can start using it all. I've followed a few tutorials and put the jar file in the path etc. (set CLASSPATH=<PATH TO CJ>) and copied a copy of CJ into c:\<PATH to Java install>\lib\ext. But I'm not sure if I need to do something special for eclipse.
I'm using win32.
Code:
public class Simi {
/**
* @param args
*/
public static void main(String[] args) {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
System.out.println("Good to go!");
} catch (Exception E) {
System.out.println("JDBC Driver Error!");
}
}
}
This is a test program to see if it's all working.....and, it's not:
"JDBC Driver Error!".
I'm not sure what to do. Or even where to start. Thanks in advance.