|
I'm having problems running my compiled class files.
In my command console I compile my .java files like this:
c:\Java\bin>javac myApp.java
It compiles without errors. however when I try to run myApp like this...
c:\Java\bin>java myApp
I keep getting this error:
Exception in thread "main" java.land.NoClassDefFoundError: my App
yet I've checked and the myApp.class file is there in Java/bin
this is the contents of myApp.java:
class myApp {
public static void main (String args[]) {
System.out.print("Hello World");
}
} // End myApp
I can't see why this won't work.
|
|
|
try
java -cp . myApp
semper fi...
|
|
|
|
|
|
|
|