Solved

NoClassDefFoundError

Posted on 2013-02-05
3
180 Views
Last Modified: 2013-06-14
Hi,
I'm getting followin error in eclipse, I've the jar file containing this class in my classpath.
java.lang.NoClassDefFoundError: org/objectweb/jonas/security/auth/callback/NoInputCallbackHandler, although I've the required jar file in the classpath and the code is compiling.

Please help me how to resolve this issue.
0
Comment
Question by:OTSSolutions
3 Comments
 
LVL 11

Accepted Solution

by:
SANDY_SK earned 500 total points
Comment Utility
If it is a web application and is getting deployed into tomcat or any other web server, Check and see if the jar files are in its lib folder.

Sometimes what happens is that if you have added a jar file in the classpath and not as a library to your project, the code will complie but when deploying the jar will not be bundled with the application.
0
 
LVL 7

Expert Comment

by:gudii9
Comment Utility
what kind of application is this. Seems like build path, deploy related issue.

Interesting link on jar files
http://docs.oracle.com/javase/tutorial/deployment/jar/run.html
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
Comment Utility
I think its from your local system

Yes means try with the sloution

Right click on jar in your eclispe add to build path . then it will add  jar .

Clean yor project and tomcat services . restart the tomcat . it will add
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now