Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » NoClassDefFoundError even if classpath seems to be correct
NoClassDefFoundError even if classpath seems to be correct [message #101982] Tue, 29 July 2003 03:34 Go to next message
Eclipse UserFriend
Originally posted by: mz.kture.kharkov.ua

I need to use the code, written by the other person. All his code consists
from several jars. I've included all these jars into my project and I'm
trying to use it. But at line SOMECLASS object=SOMECLASS.getInstance() I
have java.lang.NoClassDefFoundError. But before runnig the Eclipse had not
found any troubles. What shal I do. Thanks.
Re: NoClassDefFoundError even if classpath seems to be correct [message #105643 is a reply to message #101982] Sat, 02 August 2003 17:56 Go to previous message
Eclipse UserFriend
Originally posted by: ijonas.ijonas.com

Try putting the following line in front of the getInstance() call:

Thread.currentThread().setContextClassLoader(this.getClass() .getClassLoader(
));



"Maks Zhigalov" <mz@kture.kharkov.ua> wrote in message
news:bg581l$dil$1@eclipse.org...
> I need to use the code, written by the other person. All his code consists
> from several jars. I've included all these jars into my project and I'm
> trying to use it. But at line SOMECLASS object=SOMECLASS.getInstance() I
> have java.lang.NoClassDefFoundError. But before runnig the Eclipse had not
> found any troubles. What shal I do. Thanks.
>
Previous Topic:step into inside debug perspective issue
Next Topic:Problems starting Eclipse 2.1.1 after upgrade
Goto Forum:
  


Current Time: Thu Jul 17 21:35:51 EDT 2025

Powered by FUDForum. Page generated in 0.06061 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top