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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exception in thread main java.lang.NoClassDefFoundError:

Status
Not open for further replies.

softballcrazed

IS-IT--Management
Sep 27, 2006
3
0
0
US
I am getting an error Exception in thread main java.lang.NoClassDefFoundError: when I try to run a basic java application. We tried setting the classpath to different locations but I am unsure where to set that exactly or even if that is the problem. The version of Java that is installed is J@SEDevelopment Kit 5.0 update 2, the J2SE Runtime Enviroment update 11, Java 2 runtime environment SE v1.4.2_13, and Java SE develment kit 6, and Java SE runtime environment kit 6. Any help will be appreciated.
 
Remember to include in the classpath the directory where the .class is.

The error should show you which class is not finding.

Cheers,
Dian
 
We put the .class file and the java file itself in one folder and set the classpath to that and got the same error.

the classpath is set to c:\program files\quicktime\qtsystem\qtjava.zip

The files are located on a thumb drive, would that effect anything?

We used the set classpath command and pointed it to the proper folder on the thumbdrive but still no success.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top