Skip to main content



      Home
Home » Eclipse Projects » GEF » Some exception when I opened the gef editor
Some exception when I opened the gef editor [message #640452] Mon, 22 November 2010 03:10 Go to next message
Eclipse UserFriend
Hi,

I have some trouble need someone help.I have a gef editor extends org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette in my rcp application,it's fine while I run it as eclipse application,but after I exported program,when I opened the editor I would occasional get a NoClassDefFoundError, and not the same every time.

The exceptions include
java.lang.NoClassDefFoundError: org.eclipse.ui.views.properties.IPropertySheetPage,
java.lang.NoClassDefFoundError: org/eclipse/draw2d/geometry/Dimension,
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.gef.ui.palette.FlyoutPaletteComposite,etc.

I want to know why it happened and how to fix it.

thanks.
Re: Some exception when I opened the gef editor [message #640488 is a reply to message #640452] Mon, 22 November 2010 05:13 Go to previous messageGo to next message
Eclipse UserFriend
On 22/11/2010 08:10, Jia Gang wrote:
> Hi,
>
> I have some trouble need someone help.I have a gef editor extends
> org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette in my rcp
> application,it's fine while I run it as eclipse application,but after I
> exported program,when I opened the editor I would occasional get a
> NoClassDefFoundError, and not the same every time.
>
> The exceptions include java.lang.NoClassDefFoundError:
> org.eclipse.ui.views.properties.IPropertySheetPage,
> java.lang.NoClassDefFoundError: org/eclipse/draw2d/geometry/Dimension,
> java.lang.NoClassDefFoundError: Could not initialize class
> org.eclipse.gef.ui.palette.FlyoutPaletteComposite,etc.
>
> I want to know why it happened and how to fix it.
>
> thanks.

Sounds like the GEF plugin is not available to the RCP application. Make
sure it's included in the RCP's dependencies.

PB
Re: Some exception when I opened the gef editor [message #640749 is a reply to message #640488] Mon, 22 November 2010 20:28 Go to previous message
Eclipse UserFriend
Yes, I am sure I had included the GEF plugin in my RCP, because it is running well for the most of time, just a few times it happened.

Following are dependencies in the Rcp product config file

<plugins>
<plugin id="com.ibm.icu"/>
<plugin id="dyna.modeler"/>
<plugin id="javax.servlet"/>
<plugin id="javax.transaction" fragment="true"/>
<plugin id="org.eclipse.core.commands"/>
<plugin id="org.eclipse.core.commands.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.contenttype"/>
<plugin id="org.eclipse.core.contenttype.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.databinding"/>
<plugin id="org.eclipse.core.databinding.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.databinding.observable"/>
<plugin id="org.eclipse.core.databinding.observable.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.databinding.property"/>
<plugin id="org.eclipse.core.databinding.property.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.expressions"/>
<plugin id="org.eclipse.core.expressions.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.jobs"/>
<plugin id="org.eclipse.core.jobs.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.runtime"/>
<plugin id="org.eclipse.core.runtime.compatibility.auth"/>
<plugin id="org.eclipse.core.runtime.compatibility.auth.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
<plugin id="org.eclipse.core.runtime.nl_zh" fragment="true"/>
<plugin id="org.eclipse.draw2d"/>
<plugin id="org.eclipse.equinox.app"/>
<plugin id="org.eclipse.equinox.app.nl_zh" fragment="true"/>
<plugin id="org.eclipse.equinox.common"/>
<plugin id="org.eclipse.equinox.common.nl_zh" fragment="true"/>
<plugin id="org.eclipse.equinox.preferences"/>
<plugin id="org.eclipse.equinox.preferences.nl_zh" fragment="true"/>
<plugin id="org.eclipse.equinox.registry"/>
<plugin id="org.eclipse.equinox.registry.nl_zh" fragment="true"/>
<plugin id="org.eclipse.gef"/>
<plugin id="org.eclipse.help"/>
<plugin id="org.eclipse.help.nl_zh" fragment="true"/>
<plugin id="org.eclipse.jface"/>
<plugin id="org.eclipse.jface.databinding"/>
<plugin id="org.eclipse.jface.databinding.nl_zh" fragment="true"/>
<plugin id="org.eclipse.jface.nl_zh" fragment="true"/>
<plugin id="org.eclipse.osgi"/>
<plugin id="org.eclipse.osgi.nl_zh" fragment="true"/>
<plugin id="org.eclipse.osgi.services"/>
<plugin id="org.eclipse.osgi.services.nl_zh" fragment="true"/>
<plugin id="org.eclipse.persistence.jpa.equinox.weaving" fragment="true"/>
<plugin id="org.eclipse.swt"/>
<plugin id="org.eclipse.swt.nl_zh" fragment="true"/>
<plugin id="org.eclipse.swt.win32.win32.x86" fragment="true"/>
<plugin id="org.eclipse.ui"/>
<plugin id="org.eclipse.ui.forms"/>
<plugin id="org.eclipse.ui.forms.nl_zh" fragment="true"/>
<plugin id="org.eclipse.ui.nl_zh" fragment="true"/>
<plugin id="org.eclipse.ui.views"/>
<plugin id="org.eclipse.ui.views.nl_zh" fragment="true"/>
<plugin id="org.eclipse.ui.workbench"/>
<plugin id="org.eclipse.ui.workbench.nl_zh" fragment="true"/>
<plugin id="org.jboss.tools.xulrunner.initializer" fragment="true"/>
</plugins>

Is there any wrong in this? Btw, I used Eclipse 3.5 and GEF 3.6.0.

Thanks.
Previous Topic:Using more than one foregroundcolor in figure?
Next Topic:GEF diagrams are non-portable
Goto Forum:
  


Current Time: Wed Apr 30 03:24:18 EDT 2025

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

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

Back to the top