Java: JVM Error: Could not find the main class. Program will exit
tatacalu
New
Hello!
I downloaded a small Java source project. I used Eclipse SDK 3.2.2 to build it, and exported it as a .JAR file. when I used the command:
javaw xxx.jar to run it, the Java Virtual Machine throwed me the following error message:
When Eclipse asked me what was the project's main class,
, but still, the JVM told me that the main class was not found.
Could anybody tell me wheather I did something wrong ?
Thanks!
I downloaded a small Java source project. I used Eclipse SDK 3.2.2 to build it, and exported it as a .JAR file. when I used the command:
javaw xxx.jar to run it, the Java Virtual Machine throwed me the following error message:
Could not find the main class. Program will exit.
When Eclipse asked me what was the project's main class,
, I selected the class that containedSelect the class of the application entry point:
public static void main(String[] args) { ... }
, but still, the JVM told me that the main class was not found.
Could anybody tell me wheather I did something wrong ?
Thanks!
0
Comments