Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » NoClassDefFoundError running logic example.
NoClassDefFoundError running logic example. [message #147474] Thu, 12 August 2004 08:16 Go to next message
Eclipse UserFriend
Originally posted by: kalkibagawan.netscape.net

Hi!

I am unable to get the GEF Logic and Flow examples to run on my Eclipse
3.0 installation. When I create a simple project, right-click New >>
Example >> GEF >> Logic Diagram >> Next and then click `Finish' the
dialog refuses to go away till I `Cancel'. However a new
`fourBitAdder1.logic' resource appears under the project. Now when I
double-click on `fourBitAdder1.logic', I get a NoClassDefFoundError:
`Could not instantiate editor: Logic Graphical Editor
java.lang.NoClassDefFoundError'.

When I restart Eclipse I get a NoSuchMethodError the first time around,
and thereafter the NoClassDefFoundError. Part of the `.log' file from
my workspace follows. I'm running Eclipse 3.0 with GEF 3.0.0 on Windows
NT 4.0 (Build 1381) SP 6. I couldn't find anyone else who had had
similar problems on this newsgroup, nor on Google. I'd be really
grateful if someone could tell me what is going on here and how to fix it.

Thanks.

Andy.


!SESSION Aug 12, 2004 13:28:53.443
---------------------------------------------
java.version=1.4.1_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.core.runtime 4 2 Aug 12, 2004 13:28:53.453
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.runtime".
!STACK 0
java.lang.NoSuchMethodError:
org.eclipse.core.runtime.Platform.getBundle(Ljava/lang/Strin g;)Lorg/osgi/framework/Bundle;
at
org.eclipse.gef.internal.GEFMessages$Helper.<clinit>(GEFMessages.java:26)
at org.eclipse.gef.internal.GEFMessages.<clinit>(GEFMessages.java:33)
at
org.eclipse.gef.palette.PanningSelectionToolEntry.<init>(PanningSelectionToolEntry.java:29)
at
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCon trolGroup(LogicPlugin.java:325)
at
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCat egories(LogicPlugin.java:48)
at
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createPal ette(LogicPlugin.java:351)
at
org.eclipse.gef.examples.logicdesigner.LogicEditor.getPalett eRoot(LogicEditor.java:540)
at
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.se tEditDomain(GraphicalEditorWithFlyoutPalette.java:137)
at
org.eclipse.gef.examples.logicdesigner.LogicEditor.<init>(LogicEditor.java:331)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:143)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:125)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:114)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:171)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:168)
at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:642)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
at org.eclipse.core.runtime.Platform.run(Platform.java:493)
at org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:640)
at
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:627)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:437)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:425)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2099)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2042)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2029)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2024)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:265)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
at
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.java:94)
at
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGroup.java:111)
at
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGroup.java:300)
at
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigator.java:624)
at
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.java:388)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:406)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
at org.eclipse.core.runtime.Platform.run(Platform.java:493)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:404)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:614)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:703)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2029)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1550)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:265)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:139)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:47)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:257)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:104)
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.basicRun(Main.java:279)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)
!ENTRY org.eclipse.core.runtime 4 2 Aug 12, 2004 13:28:57.119
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.runtime".
!STACK 0
java.lang.NoClassDefFoundError
at
org.eclipse.gef.palette.PanningSelectionToolEntry.<init>(PanningSelectionToolEntry.java:29)
at
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCon trolGroup(LogicPlugin.java:325)
at
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCat egories(LogicPlugin.java:48)
at
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createPal ette(LogicPlugin.java:351)
at
org.eclipse.gef.examples.logicdesigner.LogicEditor.getPalett eRoot(LogicEditor.java:540)
at
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.se tEditDomain(GraphicalEditorWithFlyoutPalette.java:137)
at
org.eclipse.gef.examples.logicdesigner.LogicEditor.<init>(LogicEditor.java:331)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:143)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:125)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:114)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:164)
at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:642)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
at org.eclipse.core.runtime.Platform.run(Platform.java:493)
at org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:640)
at
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:627)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:437)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:425)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2099)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2042)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2029)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2024)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:265)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
at
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.java:94)
at
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGroup.java:111)
at
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGroup.java:300)
at
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigator.java:624)
at
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.java:388)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:406)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
at org.eclipse.core.runtime.Platform.run(Platform.java:493)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:404)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:614)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:703)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2029)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1550)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:265)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:139)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:47)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:257)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:104)
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.basicRun(Main.java:279)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)
Re: NoClassDefFoundError running logic example. [message #147484 is a reply to message #147474] Thu, 12 August 2004 08:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: word-up.gmx.de

Hi Andy,

download the GEF-examples-3.0.zip from the gef homepage. Extract that and
you should find the sources for the flow example and also a jar file for
the flow example.
I haven't tried it for the logic example, but it should work analog.

Follow the following steps, and the flow example should run:


1)Somewhere in your filesystem: Create a new folder. In this folder create
a folder named „src“ and extract the source code in that „src“-folder

2)Inside eclipse: create new Plug-In project. Change the folder for the
project content from default to the folder you created in the first Stepp.
Eclipse should recognize the sources contained in the src-folder

3)In the plugin.xml: add the following plugins to dependencies:
org.eclipse.gef
org.eclipse.core.resources
org.eclipse.ui.ide
org.eclipse.ui.views

4)In plugin.xml: add the following extension:
org.eclipse.ui.editors

5)In the source code of the plugin.xml, the entry for the extension tag
should look like this:
<extension
point="org.eclipse.ui.editors">
<editor
name="Flow Editor"
icon="random.gif"
extensions="flow"
contributorClass=" org.eclipse.gef.examples.flow.actions.FlowActionBarContribut or "
class="org.eclipse.gef.examples.flow.ui.FlowEditor"
id="FlowEditor">
</editor>
</extension>
remark: You have to provide an icon (here it is called random.gif, I'm
not sure if there is one if you extract the sources, probably not...so,
just use a random gif)

6)Last problem with the flow editor was when I tried it, that the images
for the figures weren’t shipped with the sources. So check out the jar
file of the plugin. Extract it and look after the images in the packages
org.eclipse.gef.examples.flow.images and create this package with the
images in your project file......now everything should work fine.

regards,

max




KBug wrote:

> Hi!

> I am unable to get the GEF Logic and Flow examples to run on my Eclipse
> 3.0 installation. When I create a simple project, right-click New >>
> Example >> GEF >> Logic Diagram >> Next and then click `Finish' the
> dialog refuses to go away till I `Cancel'. However a new
> `fourBitAdder1.logic' resource appears under the project. Now when I
> double-click on `fourBitAdder1.logic', I get a NoClassDefFoundError:
> `Could not instantiate editor: Logic Graphical Editor
> java.lang.NoClassDefFoundError'.

> When I restart Eclipse I get a NoSuchMethodError the first time around,
> and thereafter the NoClassDefFoundError. Part of the `.log' file from
> my workspace follows. I'm running Eclipse 3.0 with GEF 3.0.0 on Windows
> NT 4.0 (Build 1381) SP 6. I couldn't find anyone else who had had
> similar problems on this newsgroup, nor on Google. I'd be really
> grateful if someone could tell me what is going on here and how to fix it.

> Thanks.

> Andy.


> !SESSION Aug 12, 2004 13:28:53.443
> ---------------------------------------------
> java.version=1.4.1_02
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> !ENTRY org.eclipse.core.runtime 4 2 Aug 12, 2004 13:28:53.453
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.core.runtime".
> !STACK 0
> java.lang.NoSuchMethodError:
>
org.eclipse.core.runtime.Platform.getBundle(Ljava/lang/Strin g;)Lorg/osgi/framework/Bundle;
> at
> org.eclipse.gef.internal.GEFMessages$Helper.<clinit>(GEFMessages.java:26)
> at org.eclipse.gef.internal.GEFMessages.<clinit>(GEFMessages.java:33)
> at
>
org.eclipse.gef.palette.PanningSelectionToolEntry.<init>(PanningSelectionToolEntry.java:29)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCon trolGroup(LogicPlugin.java:325)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCat egories(LogicPlugin.java:48)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createPal ette(LogicPlugin.java:351)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.getPalett eRoot(LogicEditor.java:540)
> at
>
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.se tEditDomain(GraphicalEditorWithFlyoutPalette.java:137)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.<init>(LogicEditor.java:331)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:143)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:125)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:114)
> at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:171)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> at
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:168)
> at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:642)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
> at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> at org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:640)
> at
>
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:627)
> at
>
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:437)
> at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:425)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2099)
> at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2042)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2029)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2024)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:265)
> at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> at
>
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.java:94)
> at
>
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGroup.java:111)
> at
>
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGroup.java:300)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigator.java:624)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.java:388)
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:406)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
> at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> at
>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:404)
> at
>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:614)
> at
>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:703)
> at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2029)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1550)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:265)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:139)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:47)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:257)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:104)
> 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.basicRun(Main.java:279)
> at org.eclipse.core.launcher.Main.run(Main.java:742)
> at org.eclipse.core.launcher.Main.main(Main.java:581)
> !ENTRY org.eclipse.core.runtime 4 2 Aug 12, 2004 13:28:57.119
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.core.runtime".
> !STACK 0
> java.lang.NoClassDefFoundError
> at
>
org.eclipse.gef.palette.PanningSelectionToolEntry.<init>(PanningSelectionToolEntry.java:29)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCon trolGroup(LogicPlugin.java:325)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCat egories(LogicPlugin.java:48)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createPal ette(LogicPlugin.java:351)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.getPalett eRoot(LogicEditor.java:540)
> at
>
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.se tEditDomain(GraphicalEditorWithFlyoutPalette.java:137)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.<init>(LogicEditor.java:331)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:143)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:125)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:114)
> at
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:164)
> at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:642)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
> at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> at org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:640)
> at
>
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:627)
> at
>
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:437)
> at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:425)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2099)
> at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2042)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2029)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2024)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:265)
> at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> at
>
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.java:94)
> at
>
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGroup.java:111)
> at
>
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGroup.java:300)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigator.java:624)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.java:388)
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:406)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
> at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> at
>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:404)
> at
>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:614)
> at
>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:703)
> at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2029)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1550)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:265)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:139)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:47)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:257)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:104)
> 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.basicRun(Main.java:279)
> at org.eclipse.core.launcher.Main.run(Main.java:742)
> at org.eclipse.core.launcher.Main.main(Main.java:581)
Re: NoClassDefFoundError running logic example. [message #147492 is a reply to message #147484] Thu, 12 August 2004 08:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: word-up.gmx.de

Hi andy,

oh sorry, do this only if you want to have the flow example as a project
inside your eclipse....if you only want to run the editor......Im not
sure...I had no problems with this. Seems that he doesnt find
something......

max

Max wrote:

> Hi Andy,

> download the GEF-examples-3.0.zip from the gef homepage. Extract that and
> you should find the sources for the flow example and also a jar file for
> the flow example.
> I haven't tried it for the logic example, but it should work analog.

> Follow the following steps, and the flow example should run:


> 1)Somewhere in your filesystem: Create a new folder. In this folder create
> a folder named „src“ and extract the source code in that „src“-folder

> 2)Inside eclipse: create new Plug-In project. Change the folder for the
> project content from default to the folder you created in the first Stepp.
> Eclipse should recognize the sources contained in the src-folder

> 3)In the plugin.xml: add the following plugins to dependencies:
> org.eclipse.gef
> org.eclipse.core.resources
> org.eclipse.ui.ide
> org.eclipse.ui.views

> 4)In plugin.xml: add the following extension:
> org.eclipse.ui.editors

> 5)In the source code of the plugin.xml, the entry for the extension tag
> should look like this:
> <extension
> point="org.eclipse.ui.editors">
> <editor
> name="Flow Editor"
> icon="random.gif"
> extensions="flow"
>
contributorClass=" org.eclipse.gef.examples.flow.actions.FlowActionBarContribut or "
> class="org.eclipse.gef.examples.flow.ui.FlowEditor"
> id="FlowEditor">
> </editor>
> </extension>
> remark: You have to provide an icon (here it is called random.gif, I'm
> not sure if there is one if you extract the sources, probably not...so,
> just use a random gif)

> 6)Last problem with the flow editor was when I tried it, that the images
> for the figures weren’t shipped with the sources. So check out the jar
> file of the plugin. Extract it and look after the images in the packages
> org.eclipse.gef.examples.flow.images and create this package with the
> images in your project file......now everything should work fine.

> regards,

> max




> KBug wrote:

> > Hi!

> > I am unable to get the GEF Logic and Flow examples to run on my Eclipse
> > 3.0 installation. When I create a simple project, right-click New >>
> > Example >> GEF >> Logic Diagram >> Next and then click `Finish' the
> > dialog refuses to go away till I `Cancel'. However a new
> > `fourBitAdder1.logic' resource appears under the project. Now when I
> > double-click on `fourBitAdder1.logic', I get a NoClassDefFoundError:
> > `Could not instantiate editor: Logic Graphical Editor
> > java.lang.NoClassDefFoundError'.

> > When I restart Eclipse I get a NoSuchMethodError the first time around,
> > and thereafter the NoClassDefFoundError. Part of the `.log' file from
> > my workspace follows. I'm running Eclipse 3.0 with GEF 3.0.0 on Windows
> > NT 4.0 (Build 1381) SP 6. I couldn't find anyone else who had had
> > similar problems on this newsgroup, nor on Google. I'd be really
> > grateful if someone could tell me what is going on here and how to fix it.

> > Thanks.

> > Andy.


> > !SESSION Aug 12, 2004 13:28:53.443
> > ---------------------------------------------
> > java.version=1.4.1_02
> > java.vendor=Sun Microsystems Inc.
> > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> > !ENTRY org.eclipse.core.runtime 4 2 Aug 12, 2004 13:28:53.453
> > !MESSAGE Problems occurred when invoking code from plug-in:
> > "org.eclipse.core.runtime".
> > !STACK 0
> > java.lang.NoSuchMethodError:
> >
>
org.eclipse.core.runtime.Platform.getBundle(Ljava/lang/Strin g;)Lorg/osgi/framework/Bundle;
> > at
> > org.eclipse.gef.internal.GEFMessages$Helper.<clinit>(GEFMessages.java:26)
> > at org.eclipse.gef.internal.GEFMessages.<clinit>(GEFMessages.java:33)
> > at
> >
>
org.eclipse.gef.palette.PanningSelectionToolEntry.<init>(PanningSelectionToolEntry.java:29)
> > at
> >
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCon trolGroup(LogicPlugin.java:325)
> > at
> >
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCat egories(LogicPlugin.java:48)
> > at
> >
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createPal ette(LogicPlugin.java:351)
> > at
> >
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.getPalett eRoot(LogicEditor.java:540)
> > at
> >
>
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.se tEditDomain(GraphicalEditorWithFlyoutPalette.java:137)
> > at
> >
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.<init>(LogicEditor.java:331)
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
> > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
> > Source)
> > at java.lang.reflect.Constructor.newInstance(Unknown Source)
> > at java.lang.Class.newInstance0(Unknown Source)
> > at java.lang.Class.newInstance(Unknown Source)
> > at
> >
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:143)
> > at
> >
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:125)
> > at
> >
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:114)
> > at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:171)
> > at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> > at
> >
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:168)
> > at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:642)
> > at
> >
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> > at
org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:640)
> > at
> >
>
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:627)
> > at
> >
>
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:437)
> > at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:425)
> > at
> >
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2099)
> > at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2042)
> > at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2029)
> > at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> > at
> > org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2024)
> > at org.eclipse.ui.ide.IDE.openEditor(IDE.java:265)
> > at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> > at
> >
>
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.java:94)
> > at
> >
>
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGroup.java:111)
> > at
> >
>
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGroup.java:300)
> > at
> >
>
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigator.java:624)
> > at
> >
>
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.java:388)
> > at
> > org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:406)
> > at
> >
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> > at
> >
>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:404)
> > at
> >
>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:614)
> > at
> >
>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:703)
> > at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> > at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> > at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
> > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2348)
> > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2029)
> > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1550)
> > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
> > at
> > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:265)
> > at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:139)
> > at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:47)
> > at
> >
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:257)
> > at
> >
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:104)
> > 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.basicRun(Main.java:279)
> > at org.eclipse.core.launcher.Main.run(Main.java:742)
> > at org.eclipse.core.launcher.Main.main(Main.java:581)
> > !ENTRY org.eclipse.core.runtime 4 2 Aug 12, 2004 13:28:57.119
> > !MESSAGE Problems occurred when invoking code from plug-in:
> > "org.eclipse.core.runtime".
> > !STACK 0
> > java.lang.NoClassDefFoundError
> > at
> >
>
org.eclipse.gef.palette.PanningSelectionToolEntry.<init>(PanningSelectionToolEntry.java:29)
> > at
> >
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCon trolGroup(LogicPlugin.java:325)
> > at
> >
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCat egories(LogicPlugin.java:48)
> > at
> >
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createPal ette(LogicPlugin.java:351)
> > at
> >
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.getPalett eRoot(LogicEditor.java:540)
> > at
> >
>
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.se tEditDomain(GraphicalEditorWithFlyoutPalette.java:137)
> > at
> >
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.<init>(LogicEditor.java:331)
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
> > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
> > Source)
> > at java.lang.reflect.Constructor.newInstance(Unknown Source)
> > at java.lang.Class.newInstance0(Unknown Source)
> > at java.lang.Class.newInstance(Unknown Source)
> > at
> >
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:143)
> > at
> >
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:125)
> > at
> >
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:114)
> > at
> >
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:164)
> > at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:642)
> > at
> >
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> > at
org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:640)
> > at
> >
>
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:627)
> > at
> >
>
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:437)
> > at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:425)
> > at
> >
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2099)
> > at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2042)
> > at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2029)
> > at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> > at
> > org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2024)
> > at org.eclipse.ui.ide.IDE.openEditor(IDE.java:265)
> > at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> > at
> >
>
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.java:94)
> > at
> >
>
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGroup.java:111)
> > at
> >
>
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGroup.java:300)
> > at
> >
>
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigator.java:624)
> > at
> >
>
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.java:388)
> > at
> > org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:406)
> > at
> >
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:819)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> > at
> >
>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:404)
> > at
> >
>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:614)
> > at
> >
>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:703)
> > at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> > at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> > at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
> > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2348)
> > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2029)
> > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1550)
> > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
> > at
> > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:265)
> > at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:139)
> > at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:47)
> > at
> >
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:257)
> > at
> >
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:104)
> > 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.basicRun(Main.java:279)
> > at org.eclipse.core.launcher.Main.run(Main.java:742)
> > at org.eclipse.core.launcher.Main.main(Main.java:581)
Re: NoClassDefFoundError running logic example. [message #147543 is a reply to message #147474] Thu, 12 August 2004 13:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This is a strange stacktrace. You'd have to post details on how this
occurred. Platform.getBundle(String) definitely exists. It's a static
method.

"KBug" <kalkibagawan@netscape.net> wrote in message
news:cff8ep$kcb$1@eclipse.org...
> Hi!
>
> I am unable to get the GEF Logic and Flow examples to run on my Eclipse
> 3.0 installation. When I create a simple project, right-click New >>
> Example >> GEF >> Logic Diagram >> Next and then click `Finish' the
> dialog refuses to go away till I `Cancel'. However a new
> `fourBitAdder1.logic' resource appears under the project. Now when I
> double-click on `fourBitAdder1.logic', I get a NoClassDefFoundError:
> `Could not instantiate editor: Logic Graphical Editor
> java.lang.NoClassDefFoundError'.
>
> When I restart Eclipse I get a NoSuchMethodError the first time around,
> and thereafter the NoClassDefFoundError. Part of the `.log' file from
> my workspace follows. I'm running Eclipse 3.0 with GEF 3.0.0 on Windows
> NT 4.0 (Build 1381) SP 6. I couldn't find anyone else who had had
> similar problems on this newsgroup, nor on Google. I'd be really
> grateful if someone could tell me what is going on here and how to fix it.
>
> Thanks.
>
> Andy.
>
>
> !SESSION Aug 12, 2004 13:28:53.443
> ---------------------------------------------
> java.version=1.4.1_02
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> !ENTRY org.eclipse.core.runtime 4 2 Aug 12, 2004 13:28:53.453
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.core.runtime".
> !STACK 0
> java.lang.NoSuchMethodError:
>
org.eclipse.core.runtime.Platform.getBundle(Ljava/lang/Strin g;)Lorg/osgi/fra
mework/Bundle;
> at
> org.eclipse.gef.internal.GEFMessages$Helper.<clinit>(GEFMessages.java:26)
> at org.eclipse.gef.internal.GEFMessages.<clinit>(GEFMessages.java:33)
> at
>
org.eclipse.gef.palette.PanningSelectionToolEntry.<init>(PanningSelectionToo
lEntry.java:29)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCon trolGroup(LogicP
lugin.java:325)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCat egories(LogicPlu
gin.java:48)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createPal ette(LogicPlugin
..java:351)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.getPalett eRoot(LogicEdito
r.java:540)
> at
>
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.se tEditDomain(Grap
hicalEditorWithFlyoutPalette.java:137)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.<init>(LogicEditor.java:3
31)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:143)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:125)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:114)
> at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:171)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> at
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
:168)
> at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:642)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:819)
> at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> at
org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:640)
> at
>
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
627)
> at
>
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
..java:437)
> at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:425)
> at
>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2099
)
> at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2042)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2029)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2024)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:265)
> at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> at
>
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.jav
a:94)
> at
>
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGr
oup.java:111)
> at
>
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGr
oup.java:300)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigato
r.java:624)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.ja
va:388)
> at
>
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:406)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:819)
> at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> at
>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:40
4)
> at
>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:
614)
> at
>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.jav
a:703)
> at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2029)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1550)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:265)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:139)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:47)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:257)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:104)
> 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.basicRun(Main.java:279)
> at org.eclipse.core.launcher.Main.run(Main.java:742)
> at org.eclipse.core.launcher.Main.main(Main.java:581)
> !ENTRY org.eclipse.core.runtime 4 2 Aug 12, 2004 13:28:57.119
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.core.runtime".
> !STACK 0
> java.lang.NoClassDefFoundError
> at
>
org.eclipse.gef.palette.PanningSelectionToolEntry.<init>(PanningSelectionToo
lEntry.java:29)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCon trolGroup(LogicP
lugin.java:325)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createCat egories(LogicPlu
gin.java:48)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicPlugin.createPal ette(LogicPlugin
..java:351)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.getPalett eRoot(LogicEdito
r.java:540)
> at
>
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.se tEditDomain(Grap
hicalEditorWithFlyoutPalette.java:137)
> at
>
org.eclipse.gef.examples.logicdesigner.LogicEditor.<init>(LogicEditor.java:3
31)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:143)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:125)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:114)
> at
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
:164)
> at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:642)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:819)
> at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> at
org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:640)
> at
>
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
627)
> at
>
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
..java:437)
> at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:425)
> at
>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2099
)
> at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2042)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2029)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2024)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:265)
> at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> at
>
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.jav
a:94)
> at
>
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGr
oup.java:111)
> at
>
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGr
oup.java:300)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigato
r.java:624)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.ja
va:388)
> at
>
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:406)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:819)
> at org.eclipse.core.runtime.Platform.run(Platform.java:493)
> at
>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:40
4)
> at
>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:
614)
> at
>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.jav
a:703)
> at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2029)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1550)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:265)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:139)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:47)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:257)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:104)
> 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.basicRun(Main.java:279)
> at org.eclipse.core.launcher.Main.run(Main.java:742)
> at org.eclipse.core.launcher.Main.main(Main.java:581)
>
>
Re: NoClassDefFoundError running logic example. [message #147612 is a reply to message #147543] Thu, 12 August 2004 18:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kalkibagawan.netscape.net

Randy Hudson wrote:

> This is a strange stacktrace. You'd have to post details on how this
> occurred. Platform.getBundle(String) definitely exists. It's a static
> method.

Hi Randy,

Actually, I found that my initial description was not completely
accurate. The behaviour is more nuanced. Here is what I am doing right
now (before and after every step, I am going to check the .log file for
any messages):

1. Start up Eclipse. The Navigator View is now empty -- I deleted all
projects along with their directories so as to begin afresh.
2. Help >> About >> Plug-in Details. GEF Logic Editor Example was
there, all right, as were the other GEF packages.
3. File >> New >> Simple >> Project >> Next
4. Project name: foologic; Project contents: Use default is checked.
Click finish.
5. Now I have `foologic' in the Navigator View. So far so good.
6. File >> New >> Other >> Examples >> GEF >> Logic Diagram >> Next

No new .log messages for this session up to this point.

7. foologic is the only parent folder listed. I select it.
File name: emptyModel1.logic >> Finish. At this point I expect the
Wizard to disappear, but it doesn't! Clicking Finish again has the same
effect. This is where the sequence of events departs from that given in
the Download & Install section of the GEF FAQ (Question 3). Clicking on
`foologic', the parent folder, causes the Wizard to complain that the
same name already exists.

..log file has a message for NoSuchMethod: Platform.getBundle(). The
second, third, ..., clicks of `Finish' add NoClassDefFoundError messages
to the log.

8. Click Cancel. When I expand `foologic' in the Navigator,
emptyModel1.logic is under it. Double-clicking (or right-click >> Open)
on emptyModel1.logic in the Navigator gives me a NoClassDefFoundError.

..log file has a new NoClassDefFoundError message.

9. I now exit from Eclipse completely.
10. After a while, start up Eclipse again. Eclipse comes up with
`foologic' in the Navigator. Double-clicking now on emptyModel1.logic
gives me the java.lang.NoSuchMethodError:
org.eclipse.runtime.Platform.getBundle(Ljava/lang/String;).. .

..log file has a new NoSuchMethodError: Platform.getBundle(), &c.

11. Double-clicking again gives me a NoClassDefFoundError. Thereafter,
any attempt to open the editor only causes a NoClassDefFound.

..log file has new NoClassDefFoundError messages.

To reproduce the NoSuchMethodError, I need to restart Eclipse.
Instead, if I now delete the entire project along with the directories
and begin again at step 1, proceeding to step 7 and clicking `Finish'
does not dispose of the Wizard, but the log message this time is a
NoClassDefFoundError. Further attempts to `Finish' the Wizard add more
NoClassDefFoundError messages to the log.

To summarise, it appears that the NoSuchMethodError occurs only when I
try to open the logic example for the first time in an Eclipse session.
Later attempts only result in a NoClassDefFoundError.

I hope you will excuse me for the rather long post, but this is quite a
curious phenomenon and I wanted to make sure I'm doing the right
experiments.

Thanks.

Andy.
Re: NoClassDefFoundError running logic example. [message #147621 is a reply to message #147612] Thu, 12 August 2004 19:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Despite the description, I don't think I can reproduce this without knowing
the versions of GEF, examples, Eclpise, and JDK.

"KBug" <kalkibagawan@netscape.net> wrote in message
news:cfgbit$ev5$1@eclipse.org...
> Randy Hudson wrote:
>
> > This is a strange stacktrace. You'd have to post details on how this
> > occurred. Platform.getBundle(String) definitely exists. It's a static
> > method.
>
> Hi Randy,
>
> Actually, I found that my initial description was not completely
> accurate. The behaviour is more nuanced. Here is what I am doing right
> now (before and after every step, I am going to check the .log file for
> any messages):
>
> 1. Start up Eclipse. The Navigator View is now empty -- I deleted all
> projects along with their directories so as to begin afresh.
> 2. Help >> About >> Plug-in Details. GEF Logic Editor Example was
> there, all right, as were the other GEF packages.
> 3. File >> New >> Simple >> Project >> Next
> 4. Project name: foologic; Project contents: Use default is checked.
> Click finish.
> 5. Now I have `foologic' in the Navigator View. So far so good.
> 6. File >> New >> Other >> Examples >> GEF >> Logic Diagram >> Next
>
> No new .log messages for this session up to this point.
>
> 7. foologic is the only parent folder listed. I select it.
> File name: emptyModel1.logic >> Finish. At this point I expect the
> Wizard to disappear, but it doesn't! Clicking Finish again has the same
> effect. This is where the sequence of events departs from that given in
> the Download & Install section of the GEF FAQ (Question 3). Clicking on
> `foologic', the parent folder, causes the Wizard to complain that the
> same name already exists.
>
> .log file has a message for NoSuchMethod: Platform.getBundle(). The
> second, third, ..., clicks of `Finish' add NoClassDefFoundError messages
> to the log.
>
> 8. Click Cancel. When I expand `foologic' in the Navigator,
> emptyModel1.logic is under it. Double-clicking (or right-click >> Open)
> on emptyModel1.logic in the Navigator gives me a NoClassDefFoundError.
>
> .log file has a new NoClassDefFoundError message.
>
> 9. I now exit from Eclipse completely.
> 10. After a while, start up Eclipse again. Eclipse comes up with
> `foologic' in the Navigator. Double-clicking now on emptyModel1.logic
> gives me the java.lang.NoSuchMethodError:
> org.eclipse.runtime.Platform.getBundle(Ljava/lang/String;).. .
>
> .log file has a new NoSuchMethodError: Platform.getBundle(), &c.
>
> 11. Double-clicking again gives me a NoClassDefFoundError. Thereafter,
> any attempt to open the editor only causes a NoClassDefFound.
>
> .log file has new NoClassDefFoundError messages.
>
> To reproduce the NoSuchMethodError, I need to restart Eclipse.
> Instead, if I now delete the entire project along with the directories
> and begin again at step 1, proceeding to step 7 and clicking `Finish'
> does not dispose of the Wizard, but the log message this time is a
> NoClassDefFoundError. Further attempts to `Finish' the Wizard add more
> NoClassDefFoundError messages to the log.
>
> To summarise, it appears that the NoSuchMethodError occurs only when I
> try to open the logic example for the first time in an Eclipse session.
> Later attempts only result in a NoClassDefFoundError.
>
> I hope you will excuse me for the rather long post, but this is quite a
> curious phenomenon and I wanted to make sure I'm doing the right
> experiments.
>
> Thanks.
>
> Andy.
>
Re: NoClassDefFoundError running logic example. [message #147636 is a reply to message #147621] Thu, 12 August 2004 20:55 Go to previous message
Eclipse UserFriend
Originally posted by: kalkibagawan.netscape.net

Randy Hudson wrote:

> Despite the description, I don't think I can reproduce this without knowing
> the versions of GEF, examples, Eclpise, and JDK.

<gasp> I was still running eclipse-SDK-3.0M7 (build id 200402122000)!
How utterly stupid of me! My bad. Really sorry I wasted your time. I
could have sworn that I upgraded when the release happened ... :-P

Anyway, with Eclipse 3.0 (200406251208) everything works just fine.

Thanks.

Andy.
Previous Topic:Help Wanted bugzillas?
Next Topic:Label to connector disappears
Goto Forum:
  


Current Time: Fri Dec 27 07:03:01 GMT 2024

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

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

Back to the top