NoCLassDefFoundError
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   David_Scullion
Posted On:   Saturday, December 14, 2002 01:32 PM

Whenever i run a java program on my RH7.1 box i always get the same error

			
"exception in thread "main" java.lang.NoClassDefError in [program name]"




Ive set all the PATH, CLASSPATH and JAVA_HOME to their respective values ind am using java 1.4.1_01.



Can anyone help?


thanks in asvance


D.Scullion

Re: NoCLassDefFoundError

Posted By:   Jeff_Hubbach  
Posted On:   Monday, December 16, 2002 08:39 AM

As one last check, just incase you're coming from Windows, PATH and CLASSPATH in linux are separated by colons, not semicolons.

Re: NoCLassDefFoundError

Posted By:   Simon_Ablett  
Posted On:   Monday, December 16, 2002 07:22 AM

And you have checked that the directories specified in your CLASSPATH definitely contain the required '.class' file or that it exists in a jar file explicitly referenced by that variable? Have you also checked that the package name of the class is correct in both the source of the 'missing' class and in the import statements of the caller?

Regards.
About | Sitemap | Contact