Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / April 2005

Tip: Looking for answers? Try searching our database.

Eclipse & java.lang.NoClassDefFoundError for website

Thread view: 
kevin@kevinolds.com - 25 Apr 2005 14:23 GMT
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 - 25 Apr 2005 15:00 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.