Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » can't start deployed plugin
can't start deployed plugin [message #325558] Thu, 21 February 2008 18:23 Go to next message
Eclipse UserFriend
Hi All,

I'm desperate for help here. I've spent two days trying to solve this
and I've done nothing but look stupid. I've got a plugin that works
beautifully when I run it in the eclipse debugger. I export the plugin,
install it into my main eclipse environment and it works fine.

But for everyone else it crashes before it even gets to my code with a
ClassNotFound exception. My code is dependent on the JDT plugins and
but nothing I have been able to find let's me make those classes
available to me.

Some details:
- Running RAD 7.0.0.5 based on eclipse 3.2
- I can see that the jdt stuff is loaded in the Help | About | Plugins
- This works on my build even as a deployed plugin but doesn't work on
any of my team mate's computers
- I have the following in my features/feature.xml:
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.ui.forms"/>
<import plugin="org.eclipse.ui.console"/>
<import plugin="org.eclipse.core.filesystem"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.core.filebuffers"/>
<import plugin="org.eclipse.compare"/>
<import plugin="org.eclipse.jdt.core"/>
<import plugin="org.eclipse.text"/>
<import plugin="org.eclipse.jdt"/>
<import plugin="org.eclipse.jdt.apt.core"/>
<import plugin="org.eclipse.jdt.core.manipulation"/>
<import plugin="org.eclipse.jdt.apt.ui"/>
<import plugin="org.eclipse.jdt.debug"/>
<import plugin="org.eclipse.jdt.debug.ui"/>
<import plugin="org.eclipse.jdt.ui"/>
<import plugin="org.eclipse.jdt.junit"/>
<import plugin="org.eclipse.jdt.junit.runtime"/>
<import plugin="org.eclipse.jdt.junit4.runtime"/>
<import plugin="org.eclipse.jdt.launching"/>
<import plugin="org.eclipse.jst.common.frameworks"/>
<import plugin="org.eclipse.jst.j2ee.ui"/>
</requires>

I have all this in my MANIFEST.MF from my plugin

Eclipse-BuddyPolicy: global
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.ui.forms,
org.eclipse.ui.console,
org.eclipse.core.filesystem,
org.eclipse.core.resources,
org.eclipse.core.filebuffers,
org.eclipse.compare,
org.eclipse.jdt.core,
org.eclipse.text,
org.eclipse.jdt,
org.eclipse.jdt.apt.core,
org.eclipse.jdt.core.manipulation

I end up with this exception before my code even gets started:

java.lang.NoClassDefFoundError: org.eclipse.jdt.core.dom.Name
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(Unknown Source)
at java.lang.J9VMInternals.initialize(Unknown Source)
at com.vsp.tools.MDA.views.XSD2Java$GenerateListener.handleEven t(Unknown
Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unkn own Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.internal.ide.IDEApplication.run(Unknown Source)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Un known Source)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(Unknown
Source)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Unknown
Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Unknown Source)
at org.eclipse.core.launcher.Main.run(Unknown Source)
at org.eclipse.core.launcher.Main.main(Unknown Source)



Thank you for any suggestions.

Jason Henriksen
Re: can't start deployed plugin [message #325697 is a reply to message #325558] Mon, 25 February 2008 12:56 Go to previous message
Eclipse UserFriend
Bone headed. Didn't run -clean on the plugin. When I added the
dependencies they weren't picked up but the new code was so the
dependencies couldn't be resolved and I crashed.

Jason


jason henriksen wrote:
>
> Hi All,
>
> I'm desperate for help here. I've spent two days trying to solve this
> and I've done nothing but look stupid. I've got a plugin that works
> beautifully when I run it in the eclipse debugger. I export the plugin,
> install it into my main eclipse environment and it works fine.
>
> But for everyone else it crashes before it even gets to my code with a
> ClassNotFound exception. My code is dependent on the JDT plugins and
> but nothing I have been able to find let's me make those classes
> available to me.
>
> Some details:
> - Running RAD 7.0.0.5 based on eclipse 3.2
> - I can see that the jdt stuff is loaded in the Help | About | Plugins
> - This works on my build even as a deployed plugin but doesn't work on
> any of my team mate's computers
> - I have the following in my features/feature.xml:
> <requires>
> <import plugin="org.eclipse.ui"/>
> <import plugin="org.eclipse.core.runtime"/>
> <import plugin="org.eclipse.ui.forms"/>
> <import plugin="org.eclipse.ui.console"/>
> <import plugin="org.eclipse.core.filesystem"/>
> <import plugin="org.eclipse.core.resources"/>
> <import plugin="org.eclipse.core.filebuffers"/>
> <import plugin="org.eclipse.compare"/>
> <import plugin="org.eclipse.jdt.core"/>
> <import plugin="org.eclipse.text"/>
> <import plugin="org.eclipse.jdt"/>
> <import plugin="org.eclipse.jdt.apt.core"/>
> <import plugin="org.eclipse.jdt.core.manipulation"/>
> <import plugin="org.eclipse.jdt.apt.ui"/>
> <import plugin="org.eclipse.jdt.debug"/>
> <import plugin="org.eclipse.jdt.debug.ui"/>
> <import plugin="org.eclipse.jdt.ui"/>
> <import plugin="org.eclipse.jdt.junit"/>
> <import plugin="org.eclipse.jdt.junit.runtime"/>
> <import plugin="org.eclipse.jdt.junit4.runtime"/>
> <import plugin="org.eclipse.jdt.launching"/>
> <import plugin="org.eclipse.jst.common.frameworks"/>
> <import plugin="org.eclipse.jst.j2ee.ui"/>
> </requires>
>
> I have all this in my MANIFEST.MF from my plugin
>
> Eclipse-BuddyPolicy: global
> Bundle-Localization: plugin
> Require-Bundle: org.eclipse.ui,
> org.eclipse.core.runtime,
> org.eclipse.ui.forms,
> org.eclipse.ui.console,
> org.eclipse.core.filesystem,
> org.eclipse.core.resources,
> org.eclipse.core.filebuffers,
> org.eclipse.compare,
> org.eclipse.jdt.core,
> org.eclipse.text,
> org.eclipse.jdt,
> org.eclipse.jdt.apt.core,
> org.eclipse.jdt.core.manipulation
>
> I end up with this exception before my code even gets started:
>
> java.lang.NoClassDefFoundError: org.eclipse.jdt.core.dom.Name
> at java.lang.J9VMInternals.verifyImpl(Native Method)
> at java.lang.J9VMInternals.verify(Unknown Source)
> at java.lang.J9VMInternals.initialize(Unknown Source)
> at com.vsp.tools.MDA.views.XSD2Java$GenerateListener.handleEven t(Unknown
> Source)
> at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
> at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
> at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unkn own Source)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
> at org.eclipse.ui.internal.ide.IDEApplication.run(Unknown Source)
> at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Un known
> Source)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(Unknown
> Source)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Unknown
> Source)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.invokeFramework(Unknown Source)
> at org.eclipse.core.launcher.Main.basicRun(Unknown Source)
> at org.eclipse.core.launcher.Main.run(Unknown Source)
> at org.eclipse.core.launcher.Main.main(Unknown Source)
>
>
>
> Thank you for any suggestions.
>
> Jason Henriksen
Previous Topic:Add a cascade menu to a contex menu item
Next Topic:ErrorSupportProvider and UI for ErrorDialog
Goto Forum:
  


Current Time: Sat May 10 05:53:22 EDT 2025

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

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

Back to the top