Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Classloading issue with 3.4
Classloading issue with 3.4 [message #113762] Wed, 09 July 2008 14:15 Go to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
I have a class loading problem in Eclipse RCP 3.4 I don't understand the
cause.

I have a method in ClassA located in BundleA.
This method calls a method in ClassB located in BundleB.
Some method in ClassB catches ExceptionB, located in BundleB.
The problem is that when trying to create an ClassB instance from ClassA,
I get this error:

java.lang.NoClassDefFoundError: ExceptionB

but I can do this just before new ClassB():

ExceptionB.class.toString()

Any help will be greatly appreciated
Re: Classloading issue with 3.4 [message #113776 is a reply to message #113762] Wed, 09 July 2008 14:15 Go to previous messageGo to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
I forgot to mention that all packages from BundleB are exported.

David Perez wrote:

> I have a class loading problem in Eclipse RCP 3.4 I don't understand the
> cause.

> I have a method in ClassA located in BundleA.
> This method calls a method in ClassB located in BundleB.
> Some method in ClassB catches ExceptionB, located in BundleB.
> The problem is that when trying to create an ClassB instance from ClassA,
> I get this error:

> java.lang.NoClassDefFoundError: ExceptionB

> but I can do this just before new ClassB():

> ExceptionB.class.toString()
Re: Classloading issue with 3.4 [message #113786 is a reply to message #113776] Wed, 09 July 2008 14:38 Go to previous message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
Sorry for the noise, it was a misconfiguration.
A project had other workspace project dependencies, instead of specifiying
the dependencies as bundles.

David Perez wrote:

>> I have a class loading problem in Eclipse RCP 3.4 I don't understand the
>> cause.

>> I have a method in ClassA located in BundleA.
>> This method calls a method in ClassB located in BundleB.
>> Some method in ClassB catches ExceptionB, located in BundleB.
>> The problem is that when trying to create an ClassB instance from ClassA,
>> I get this error:

>> java.lang.NoClassDefFoundError: ExceptionB

>> but I can do this just before new ClassB():

>> ExceptionB.class.toString()
Previous Topic:P2 shared profile + bundle pool
Next Topic:alternative to the nevada update site?
Goto Forum:
  


Current Time: Fri Apr 26 10:10:01 GMT 2024

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

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

Back to the top