aspose file tools
The moose likes Java in General and the fly likes NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic
Author

NoClassDefFoundError

Artemesia Lakener
Ranch Hand

Joined: Jun 21, 2005
Posts: 162
I have a java servlet web application running on an application server, the error I got was --

java.lang.NoClassDefErrorFound and it shows some Class name as "(unknown source)". I checked and found I have already included that class package .jar in the application server's CLASSPATH. and everything compiles without any problem. What could be the problem ? Any clue or suggestion ?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

in the application server's CLASSPATH
The usual way to include a jar file in your web application's classpath is just to put it in the web application's WEB-INF/lib directory. That's probably what you should do too, unless you really need to make the jar file accessible not only to all web applications but to the application server itself.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: NoClassDefFoundError
 
Similar Threads
classpath woes
Need tips if possible
ClassLoader Problem
JNDI names
my java class in not recognized in web app