J
John-FL
Hey,
I get a "NoClassDefFoundError" in my program when I call it using:
java -classpath /path/to/program/ /path/to/program/Program
However, when I specify the path to the java program (relative), it
works:
java Program
In both cases I am in the /path/to/program directory, and in there is
Program.class and Program.java. Could someone let me know why this
isn't working?
Thanks!
John
I get a "NoClassDefFoundError" in my program when I call it using:
java -classpath /path/to/program/ /path/to/program/Program
Exception in thread "main" java.lang.NoClassDefFoundError: /path/to/program/Program
However, when I specify the path to the java program (relative), it
works:
java Program
In both cases I am in the /path/to/program directory, and in there is
Program.class and Program.java. Could someone let me know why this
isn't working?
Thanks!
John