I installed jdk1.6 and I run java in console windows
I have a test.java file under C:\test\test.java
When I enter into C:\test>java test, it can run
However, when I was in other directory
e.g. C:\abc\example>java -classpath C:\test\test.class test
It said noclassdeffounderror.
How should I write it properly?