Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageHi 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.