Sunday, February 11, 2007

My version of JDK won't run classes, even when they're in the current directory. What should I set my classpath to?

Remember always to include the current directory in your classpath. For example, on Windows systems, you might need to try

jre -cp .\ MyJavaApplication , or

java -cp .\ MyJavaApplication


SOURCE : www.referjava.com

No comments: