Here is the A.java in test\woo\com\src dir
import java.util.Properties;
public class A {
public static void main(
String[] args)
{
Properties p = System.getProperties();
p.setProperty("sdsd sdfs", "dsfs sdfs");
p.list(System.out);
}
}
javac ..\A.java
is used to compile it from the test\woo\com\src\classes dir. The A.class is in the test\woo\com\src as expected.
It seems no matter how do I use the -cp the in
java command line from test\woo\com\src\classes, it always throws NoClassDefFoundError. Would anyone shed some light on this? Thanks!