Home > Archive > Java Help > April 2005 > Eclipse & java.lang.NoClassDefFoundError for website
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Eclipse & java.lang.NoClassDefFoundError for website
|
|
| kevin@kevinolds.com 2005-04-25, 8:58 pm |
| Hello All,
Thanks for taking the time to read this post. I am maintaining a
java-based website that I didn't originally create. The development
platform is Eclipse Version 2.1.3. As an upgrade to the site I'm trying
to add a few new .jar files, as well as references to those .jar files
in existing code. Everything compiles correctly in Eclipse, but when I
implement the new code and try to access the site, I receive this (I've
masked the path and true file name):
java.lang.NoClassDefFoundError: com/path1/path2/path3/FileName
In Eclipse I included the new .jar files in the build path, and I made
sure the new .jar's are on the server in the directory with the other
existing .jar's.
I've looked at other posts of a similar nature, but they all talk
about either executing things IN Eclipse, or running 'java -cp ...' at
the command line: I'm doing neither.
Can anyone provide some direction as to why this error would only be
showing up on execution and not compilation? Am I missing another step
in Eclipse that needs to be performed? Any info or insights would be
appreciated.
Many thanks,
Kevin
| |
| kevin@kevinolds.com 2005-04-25, 8:58 pm |
| Hi All,
Solved the issue. I needed to add the new .jar files to the classpath
IN MY SERVLET ENGINE. Conceptually simple, but it took a while for me
to think of it, since I rarely have to do anything with the servlet
engine.
Thanks and have a great day,
Kevin
|
|
|
|
|