Help me run a class from command line
I have a class calledmyTest which uses mysql-connector-java xxx. This mysql-connector-java xxx is placed within the same directory just in case, so please tell me how I can ran.
What I have read so far suggests the following:
java -classpath ,;mysql-connector-java myTest
This is the result from the above:
Exception in thread "main" java.lang.NoClassDefFoundError: myTest ....
Do you know why "-classpath ;" ?
Here is my classpath environment:
C:\PROGRA~1\Java\jdk1.6.0\lib;C:\PROGRA~1\Java\jdk1.6.0\lib;C:\PROGRA~1\JMF21~1.1\lib\sound.jar;C:\PROGRA~1\JMF21~1.1\lib\jmf.jar;C:\PROGRA~1\JMF21~1.1\lib;C:\WINDOWS\java\classes;C:\PROGRA~1\Java\jdk1.6.0\lib;c:\jtapi;C:\mysql-connector-java-5.1.0\mysql-connector-java.jar;
I have no other problems i.e I can ran HelloWorldApp with :
Java HelloWorldApp and it runs from within the same directory.

