Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Re: Strange NoClassDefFoundError
Re: Strange NoClassDefFoundError [message #54255] Thu, 09 April 2009 15:28
Ankur Sharma is currently offline Ankur SharmaFriend
Messages: 84
Registered: July 2009
Member
Jochen wrote:
> Ankur Sharma wrote:
>> Jochen wrote:
>>> Hi,
>>>
>>> I have a strange NoClassDefFoundError with my plugin.
>>> The plugin loads fine with Eclipse, when I open the run configuration
>>> provided by the plugin I get the proper dialogs and everything, but
>>> when I try to "Run" the run-configuration I get the
>>> NoClassDefFoundError for the class that "Run" delegates to.
>>> I'm a bit stumped by this, because obviously Eclipse finds some of
>>> the classes in my plugin, but not others.
>>>
>>> Possibly relevant bits of my plugin.xml:
>>>
>>> <runtime>
>>> <library name="muclipse.jar">
>>> <export name="*"/>
>>> </library>
>>> </runtime>
>>>
>>>
>
>> So if I get it right, you are writing a plugin for the IDE. Now this
>> JAR (muclipse.jar) is a just a jar or a plugin itself?
>> If its a plguin, you should be adding it as a "dependency" rather than
>> an external library.
>> But if its just a java jar then i hope you are adding it through
>> manifest editor -> build page -> Extra Classpath entries.
>
> Not quite. When building, I pack the compiled Java classes _of the
> plugin_ into that JAR, and on the "Runtime" page I specify this JAR as
> the library constiuting the runtime of the plugin.
> As a side note, I "inherited" the plugin from sourceforge and this is
> how it was set up there. But after recompiling in my workspace, the
> deployed plugin no longer works.
>
>>
>> Other than this I can't think why you should be seeing this exception.
>> Check the "Java Build Path" properties page once of any access
>> restrictions (I doubt there'll be any).
>
> Since the plugin is "old-style", it doesn't have an OSGi manifest, and
> hence there are no access restrictions that I can see.
> I also tried to use the wizard to create an OSGi manifest, but with that
> Eclipse fails to start because apparently then the plugin.xml and the
> manifest are somehow in conflict and I don't know enough about those
> things to fix them.
>
> Jochen

Jochen,
I am taking the thread to eclipse.platform.pde newsgroup, which suits the question more.


Pinging Chris for help with old-style plugins!!
Previous Topic:how to write extra info on .project and .classpath?
Next Topic:Re: Strange NoClassDefFoundError
Goto Forum:
  


Current Time: Sun Jun 20 17:23:24 GMT 2021

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

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

Back to the top