Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Plugins work in Runtime, but throw NoClassDefError when installed
Plugins work in Runtime, but throw NoClassDefError when installed [message #182995] Tue, 05 December 2006 14:46 Go to next message
Eclipse UserFriend
Originally posted by: fiedler.bass.web.de

Hello,

I have some plugins, which work fine in the runtime environment. I
exported them to an archive.
To test this archive, I extracted it to an empty eclipse directory,
added the .eclipseextension file and used this as an install location
for a fresh instance with its own workspace and configuration.
Everything seems to be fine: The Contributions show up in the UI and all
plugins are listed in the plugin registry.

But when I run some of the Actions of the plugins, I keep getting
NoClassDefFoundError(see below).

So I tried (from the test instance) to import the plugins in the
workspace, and again start a runtime with them -this worked! So the same
plugins to not work when included via install site, but do work in a
runtime.

The errors seem to refer to the same plugin(on which all the others
depend), this one seems not to be found. But it is there..and exporting
all classes via <export name="*"/>.

Thanks for any help.
Frank




java.lang.NoClassDefFoundError:
org/intoJ/exceptions/IntoJCalculationException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:23 28)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:157)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:242)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
at
org.eclipse.ui.internal.PluginAction.createDelegate(PluginAc tion.java:120)
Re: Plugins work in Runtime, but throw NoClassDefError when installed [message #183007 is a reply to message #182995] Tue, 05 December 2006 15:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fiedler.bass.web.de

Frank Fiedler wrote:

> To test this archive, I extracted it to an empty eclipse directory,
> added the .eclipseextension file and used this as an install location
> for a fresh instance with its own workspace and configuration.

Perhaps this explanation is not quite clear. With an "empty eclipse
directory" I mean a empty directory named "eclipse". Into this I
unpacked the archive.
Then I added the directory to the test instance configuration with
Help/Software Updates/Manage Configuration/Add an Extension Location..
Re: Plugins work in Runtime, but throw NoClassDefError when installed [message #183068 is a reply to message #182995] Tue, 05 December 2006 20:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Frank Fiedler" <fiedler.bass@web.de> wrote in message
news:el40p0$cfo$1@utils.eclipse.org...
> Hello,
>
> I have some plugins, which work fine in the runtime environment. I
> exported them to an archive.
> To test this archive, I extracted it to an empty eclipse directory, added
> the .eclipseextension file and used this as an install location for a
> fresh instance with its own workspace and configuration.
> Everything seems to be fine: The Contributions show up in the UI and all
> plugins are listed in the plugin registry.
>
> But when I run some of the Actions of the plugins, I keep getting
> NoClassDefFoundError(see below).


Check that your plug-in dependencies are correct in the MANIFEST.MF.

Also, is the class that it's not finding possibly in a nested .jar file?
See comments in https://bugs.eclipse.org/bugs/show_bug.cgi?id=145001.
Re: Plugins work in Runtime, but throw NoClassDefError when installed [message #183154 is a reply to message #183068] Tue, 05 December 2006 23:21 Go to previous message
Eclipse UserFriend
Originally posted by: fiedler.bass.web.de

Walter Harley wrote:

> Also, is the class that it's not finding possibly in a nested .jar file?
YES. That´s it.

> See comments in https://bugs.eclipse.org/bugs/show_bug.cgi?id=145001.
Very interesting, too.

I´m on a timeline, and being able to fix this quickly is really helpful,
thanks a lot.

regards,
Frank
Previous Topic:eclipsse-user interface
Next Topic:Updater to 3.2.1 runs EVERY TIME
Goto Forum:
  


Current Time: Sun Jun 30 13:53:58 GMT 2024

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

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

Back to the top