Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Plug-in xx is unable to load class xx
Plug-in xx is unable to load class xx [message #457331] Mon, 30 October 2006 07:46 Go to next message
Eclipse User
Originally posted by: d.poetschko.gmx.at

hi,

i built a RCP application with an extension point. i got a couple of other plugins connecting to this extension point.

the RCP got an interface IModuleFunction with the method showModuleIcon() (just returns a String).

the thing is, that the application gets the extender plugins (at least all meta information) but the classes that implement the inteface cannot be loaded.

if i try to run the showModuleIcon() method in the RCP -->

it says:
Plug-in com.poe.vital.heart was unable to load class com.poe.vital.heart.Heart.
org.eclipse.core.runtime.CoreException[1]: java.lang.NoClassDefFoundError: com/poe/vital/IModuleFunction
at java.lang.Classloader.defineClass1(Native Mehtod)
...
...
...

anyone an idea?
what reasons could cause this?

thanks
Re: Plug-in xx is unable to load class xx [message #457373 is a reply to message #457331] Mon, 30 October 2006 09:02 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 4462
Registered: July 2009
Senior Member
Hi,

how do you you try to create an instance from the class?
IConfigurationElement#createExecuteableExtension()?

If that's the case do your other plugins export the package where the
class you want to instantiate is found in?

Tom

Daniel Poetschko schrieb:
> hi,
>
> i built a RCP application with an extension point. i got a couple of other plugins connecting to this extension point.
>
> the RCP got an interface IModuleFunction with the method showModuleIcon() (just returns a String).
>
> the thing is, that the application gets the extender plugins (at least all meta information) but the classes that implement the inteface cannot be loaded.
>
> if i try to run the showModuleIcon() method in the RCP -->
>
> it says:
> Plug-in com.poe.vital.heart was unable to load class com.poe.vital.heart.Heart.
> org.eclipse.core.runtime.CoreException[1]: java.lang.NoClassDefFoundError: com/poe/vital/IModuleFunction
> at java.lang.Classloader.defineClass1(Native Mehtod)
> ..
> ..
> ..
>
> anyone an idea?
> what reasons could cause this?
>
> thanks
Re: Plug-in xx is unable to load class xx [message #457398 is a reply to message #457373] Tue, 31 October 2006 05:58 Go to previous message
Eclipse User
Originally posted by: d.poetschko.gmx.at

well, thats exactly the problem. i forgot to export the package.

thanks a lot for the quick answer!

greetings from austria,
daniel.
Previous Topic:Tooltips on menu items
Next Topic:Defining Views
Goto Forum:
  


Current Time: Tue May 21 09:21:18 EDT 2013

Powered by FUDForum. Page generated in 0.06738 seconds