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!

NoClassDefFoundError when running Jar File?

Status
Not open for further replies.

fungling

Programmer
Feb 23, 2003
10
HK
Dear all,

Error occurs when I am running a Jar file. Error message:
Exception in thread "main" java.lang.NoClassDefFoundError: mccCode/AppPur (wrong name: AppPur)

I have setted the Classpath (y:\win95nt\java\jdk131\bin) before running the Jar file. But, It claims 'NoClassDefFoundError". What should I do? Did you met it before?

Thanks
Joyce
 
Try to set the classpath to your current directory to...ie -classpath .;y:\win95nt\java\jdk131\bin.
 
>> I have setted the Classpath (y:\win95nt\java\jdk131\bin)

Why did you set it to that folder? Are you putting your .class and .jar files in there?

-pete

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top