Iam on a windows macine and have the latest java download from SUN.
When I try to open the program from the JAR file
the Java Virtual Machine window opens with the message "could not find main class - program will exit"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HELP !!!
I keep getting Java Virtual Machine - could not find main class - program will exit.
I cannot get it to run.
The actual output would be beneficial.
Are you using the the ".jar" binary or the source code?
What is your OS and java version?
Iam on a windows macine and have the latest java download from SUN.
When I try to open the program from the JAR file
the Java Virtual Machine window opens with the message "could not find main class - program will exit"
Has there been any resolution to this. I get the same error message using Windows XP with the latest JRE installed.
Be certain you are using Sun's Java.
Try typing at a command prompt "java -jar " and the file location and name.
C:\j2sdk1.4.2_11\bin\vmt\Main.java:249: '(' or '[' expected
Vector<String> v = new Vector<String>();
^
C:\j2sdk1.4.2_11\bin\vmt\Main.java:320: <identifier> expected
public Vector<Object> exportPreferences() {
^
C:\j2sdk1.4.2_11\bin\vmt\Main.java:375: ';' expected
}
^
3 errors
Tool completed with exit code 1
when i run this application those error msg has coming out...what is the problem i face it.. i'm using j2sdk1.4.2 on windows 2000 environment
The latest version requires Sun's 1.5 or above.