Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no class found error

 
Paul Keohan
Ranch Hand
Posts: 411
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone give me some ideas here?
I am getting a java.lang.NoClassDefFoundError error while running an application. It displays the error and the directory path of missing class. The class DOES exist in this directory and my lookup class compiles cleanly so what am I missing? I have checked classpaths and added the class to a common jar file that's being read - all to no avail.
If anyone can give me some further ideas on what's wrong, I'd much appreciate it.
Thanks.
Paul
 
Fred Hosch
Author
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my experience, this is almost always a CLASSPATH problem.
Are you sure the process you're running has the same CLASSPATH
as the one you're looking at? Does it find other classes in
the same package as the lost one?
------------------
Fred Hosch
Author of:
An Introduction to Software Construction with Java
 
ryan burgdorfer
Ranch Hand
Posts: 219
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, note that everytime you make a change to an environment variable (like CLASSPATH, PATH, etc.) you have to close/re-open any program you are using for the changes to be realized. It took me a minute to figure that out back when I was setting up the JDK for the first time and configuring my classpath/path. I couldn't understand why my changes apparently had no effect
------------------
  • Ryan Burgdorfer
  • Java Acolyte
 
Steven YaegerII
Ranch Hand
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, in System Configuration Utility, under the General tab, you'll want to make sure the "process Autoexec.bat file" checkbox is checked. This shouldn't be a problem, though, if you haven't tweaked your PC in the past and altered the settings.
Steve
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic