Results 1 to 4 of 4
- 10-18-2012, 06:01 AM #1
Member
- Join Date
- Oct 2012
- Posts
- 2
- Rep Power
- 0
Error in java.lang.NoClassDefFounderror
Hello All,
I am new to Java and I have a very simple question.I have a program which is calling the method in a .jar file.At complie time it gets compiled successfully.
However at runtime I get an error while trying to invoke the method in tha jar.
Error string is
Exception in thread main java.lang.NoClassDefFounderror
at com.abc.edit.setBy
Name of the method is setBy .Please note below things have already been checked
1)JAR files is added in the project
2)It is being reflected in .classpath file
Any pointers?
Thanks,
Rohit
- 10-18-2012, 10:05 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Error in java.lang.NoClassDefFounderror
How are you running this?
Because that error implies that jar file is not on your runtime classpath.Please do not ask for code as refusal often offends.
- 10-18-2012, 03:08 PM #3
Member
- Join Date
- Oct 2012
- Posts
- 2
- Rep Power
- 0
Re: Error in java.lang.NoClassDefFounderror
Hi,
I am running it through Eclipse.Sorry I am not sure how to add it in runtime class path.
Thanks
- 10-19-2012, 10:23 AM #4
Member
- Join Date
- Sep 2012
- Location
- Guntur, India
- Posts
- 27
- Rep Power
- 0
Similar Threads
-
java.lang.NoClassDefFoundError
By BoomPony in forum New To JavaReplies: 8Last Post: 01-05-2011, 05:36 PM -
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/star/lang/XEventLi
By baktha.thalapathy in forum New To JavaReplies: 5Last Post: 06-02-2010, 01:05 PM -
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/star/lang/XEventLi
By baktha.thalapathy in forum Advanced JavaReplies: 3Last Post: 06-01-2010, 03:01 PM -
java.lang.NoClassDefFoundError
By noobie in forum Java AppletsReplies: 5Last Post: 04-22-2009, 02:35 AM -
java.lang.NoClassDefFoundError
By fred in forum Advanced JavaReplies: 3Last Post: 08-01-2007, 05:00 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks