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.

[926 byte] By [McTaara] at [2007-11-27 9:16:25]
# 1
Assuming you are running the java command from teh same dir the file is in:java -classpath .;%CLASSPATH% myTestshould run fine. Of course, make sure you have compiled it first with javac -classpath .;%CLASSPATH% myTest.java~Tim
SomeoneElsea at 2007-7-12 22:06:09 > top of Java-index,Java Essentials,New To Java...