Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Virtual Error

Status
Not open for further replies.

asmall

Programmer
Dec 26, 2002
31
US
At startup I get a message that says "Could not find the main class. Program will exit." Can someone tell me why I'm getting this and how to fix it?
 
you should pass in parameter -classpath the directory path to your class.

Ion Filipski
1c.bmp
 
I am guessing this is not actually a CLASSPATH issue, because of it were, there would be an error like this :

"Exception in thread "main" java.lang.NoClassDefFoundError: aaa"

I am guessing the caller is trying to execute an applet, or ajar file maybe using web start ?

Is this correct ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top