Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Eclipse & java.lang.NoClassDefFoundError for website
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


Report this thread to moderator Post Follow-up to this message
Old Post
kevin@kevinolds.com
04-26-05 01:58 AM


Re: Eclipse & java.lang.NoClassDefFoundError for website
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


Report this thread to moderator Post Follow-up to this message
Old Post
kevin@kevinolds.com
04-26-05 01:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:32 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.