Home » Developer & Programmer » JDeveloper, Java & XML » Exception in thread "main"java.lang.NoClassDefFoundError
Exception in thread "main"java.lang.NoClassDefFoundError [message #92755] Thu, 06 January 2005 18:04 Go to next message
Thnamaya
Messages: 2
Registered: January 2005
Junior Member
My program is simple java program

public class exam
{ public static void main(String args[[]])
{
System.out.println("hi");
}
}
I have saved it as exam.java in c:newfolder
program compiles properly but when it is run it gives the error
Exception in thread "main"java.lang.NoClassDefFoundError

I use j2sdk1.4.1_07

And i have set the pass as
C:newfolderset path=c:j2sdk1.4.1_07bin

Still its giving me the error please help me
Thank you
Re: Exception in thread "main"java.lang.NoClassDefFoundError [message #92774 is a reply to message #92755] Thu, 13 January 2005 00:10 Go to previous messageGo to next message
bahi
Messages: 1
Registered: January 2005
Junior Member
Exception in thread "main"java.lang.NoClassDefFoundError
Re: Exception in thread "main"java.lang.NoClassDefFoundError [message #92776 is a reply to message #92755] Thu, 13 January 2005 09:29 Go to previous messageGo to next message
Simon
Messages: 60
Registered: December 1998
Member
Do this

set CLASSPATH=.;c:javaj2sdk1.4.1_01bin
Re: Exception in thread "main"java.lang.NoClassDefFoundError [message #92778 is a reply to message #92776] Thu, 13 January 2005 14:37 Go to previous message
Sublimefn87
Messages: 1
Registered: January 2005
Junior Member
Sweet, this got it to finally work!
Previous Topic: About using 'loadjava' tool
Next Topic: NoClassDefFoundError
Goto Forum:
  


Current Time: Mon Nov 25 19:04:03 CST 2024