Java Language:core
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abdul_Ambalam
Posted On:   Friday, October 26, 2001 01:58 PM

Sometimes I get NoClassDefFoundError when I run class from dosprompt eventhogh i have the class file in the directory. My OS is windows-2000. can anyone tell me why I am getting this error.

Re: Java Language:core

Posted By:   Luigi_Viggiano  
Posted On:   Friday, October 26, 2001 04:28 PM

Or also you are really missing some compiled classes that is currently used by your app. (deleted?)

Re: Java Language:core

Posted By:   Luigi_Viggiano  
Posted On:   Friday, October 26, 2001 04:26 PM

because the jvm, for some reason doesn't find your class. Remember that to find classes the JVM needs to go thru CLASSPATH environment variable, and you should add '.' to the classpath, if you want that the current dir to be checked for classes.

ClassNotFound is 90% of possibility that you missed something in classpath. Remember also that package have to be specified in the command line.
About | Sitemap | Contact