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
Joined: Apr 16, 2001
Posts: 23
posted
0
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
Fred Hosch<br />Author of:<br /><a href="http://www.amazon.com/exec/obidos/ASIN/0471354899/ref=ase_electricporkchop/107-7882751-0234939" target="_blank" rel="nofollow">An Introduction to Software Construction with Java</a>
ryan burgdorfer
Ranch Hand
Joined: Jan 24, 2001
Posts: 219
posted
0
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 ------------------
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.