|Re: Strange NoClassDefFoundError [message #54255]
||Thu, 09 April 2009 15:28
| Ankur Sharma
Registered: July 2009
> Ankur Sharma wrote:
>> Jochen wrote:
>>> 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:
>>> <library name="muclipse.jar">
>>> <export name="*"/>
>> 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.
I am taking the thread to eclipse.platform.pde newsgroup, which suits the question more.
Pinging Chris for help with old-style plugins!!
Powered by FUDForum
. Page generated in 0.02267 seconds