Solved

NoClassDefFoundError

Posted on 2013-02-05
3
184 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
ID: 38856460
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
ID: 38857031
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
ID: 38858390
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bunnyEars challenge 6 138
noX challenge 17 129
egit plugin on eclipse 8 82
Windows 10 and JDK 7 7u85 4 53
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.

840 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