Skip to main content

Exception in thread "main" java.lang.noclassdeffounderror

1 reply [Last post]
Rebe
Offline
Joined: 2006-02-17

PLEASE !!!!
I REALLY NEED HELP!!
I'm new in Java and I'm trying to run my first program.
I can compile it well, but when I try to run it this message appears:
Exception in thread "main" java.lang.noclassdeffounderror: [my program name]
I'm using windows xp and my .class and .java files are in c:\rebeca\java

I created the classpath variable with this value (inside quotes):
" .;C:\j2sdk1.4.2_04\lib "

and modified path variable and add this at the begining:
" C:\j2sdk1.4.2_04\bin;c:\rebeca\java; "

I'm using java version 1.4.2_04

Could someone help me please !!!! (my email is correotica@hotmail.com, please write me to the email too!)

Thanks for your help

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
atalanta0505
Offline
Joined: 2009-03-06

hi, please try 'set classpath =.;C:\j2sdk1.4.2_04\lib;C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\lib\dt.jar'

Message was edited by: atalanta0505

Message was edited by: atalanta0505