Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » can not start RCP Applicatioon : NoClassDefFoundError
can not start RCP Applicatioon : NoClassDefFoundError [message #436527] Sun, 11 September 2005 21:48
Daniel Beck is currently offline Daniel BeckFriend
Messages: 4
Registered: July 2009
Junior Member
Hello,


I'm trying to make this tutorial from IBM :
https://www6.software.ibm.com/developerworks/education/os-rc p1/os-rcp1-4-1.html

In it, you learn how to do as an RPC application an eclipse browser (A
Browser that uses the eclipse API)
I start the application with :
java -cp startup.jar org.eclipse.core.launcher.Main -application
com.ibm.developerworks.google.googleApplication
(I'm working under linux, and eclipse3.0)
So, what is happening ? How can I bring it to work ?

Then, the programm quits, and I got a (fairly long) logfile.
Here is my plugin.xml file :

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!-- First, we define the body of the manifest -->
<plugin
id="com.ibm.developerworks.google"
name="Google Plug-in"
version="1.0.0"
provider-name="Daniel Beck"
class="com.ibm.developerworks.google.GooglePlugin">

<runtime>
<library name="Google.jar">
<export name="*"/>
</library>
</runtime>

<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.core.expressions"/>
<import plugin="org.eclipse.help"/>
<import plugin="org.eclipse.jface"/>
<import plugin="org.eclipse.osgi.services"/>
<import plugin="org.eclipse.osgi.util"/>
<import plugin="org.eclipse.osgi"/>
<import plugin="org.eclipse.swt.gtk"/>
<import plugin="org.eclipse.swt"/>
<import plugin="org.eclipse.ui.workbench"/>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.update.configurator"/>
</requires>
<extension id="googleApplication"
point="org.eclipse.core.runtime.applications">
<application>
<run class="com.ibm.developerworks.google.GoogleApplication"/>
</application>
</extension>

<extension point="org.eclipse.ui.perspectives"> <!--This extension point
adds perspectives to the generic workbench-->
<perspective id="com.ibm.developerworks.google.GooglePerspective"
name="Google"
class="com.ibm.developerworks.google.GooglePerspective"/>
</extension>

</plugin>


My Directory structure :
aniel@HelloWorld82 /mnt/winXP/Bachelor/Google $ du
128 ./plugins/com.ibm.developerworks.google_1.0.0
224 ./plugins/org.eclipse.core.expressions_3.0.0
64 ./plugins/org.eclipse.core.runtime_3.0.2/meta-inf
576 ./plugins/org.eclipse.core.runtime_3.0.2
96 ./plugins/org.eclipse.help_3.0.0/dtd
384 ./plugins/org.eclipse.help_3.0.0
640 ./plugins/org.eclipse.jface_3.0.2
64 ./plugins/org.eclipse.osgi_3.0.1/meta-inf
896 ./plugins/org.eclipse.osgi_3.0.1
672 ./plugins/org.eclipse.swt.gtk_3.0.2/os/linux/x86
704 ./plugins/org.eclipse.swt.gtk_3.0.2/os/linux
736 ./plugins/org.eclipse.swt.gtk_3.0.2/os
1088 ./plugins/org.eclipse.swt.gtk_3.0.2/ws/gtk
1120 ./plugins/org.eclipse.swt.gtk_3.0.2/ws
64 ./plugins/org.eclipse.swt.gtk_3.0.2/meta-inf
2144 ./plugins/org.eclipse.swt.gtk_3.0.2
64 ./plugins/org.eclipse.swt_3.0.2/meta-inf
192 ./plugins/org.eclipse.swt_3.0.2
2400 ./plugins/org.eclipse.ui.workbench_3.0.2
832 ./plugins/org.eclipse.ui_3.0.2/icons/full/obj16
64 ./plugins/org.eclipse.ui_3.0.2/icons/full/ovr16
480 ./plugins/org.eclipse.ui_3.0.2/icons/full/dtool16
480 ./plugins/org.eclipse.ui_3.0.2/icons/full/etool16
320 ./plugins/org.eclipse.ui_3.0.2/icons/full/eview16
928 ./plugins/org.eclipse.ui_3.0.2/icons/full/dlcl16
928 ./plugins/org.eclipse.ui_3.0.2/icons/full/elcl16
416 ./plugins/org.eclipse.ui_3.0.2/icons/full/wizban
320 ./plugins/org.eclipse.ui_3.0.2/icons/full/progress
544 ./plugins/org.eclipse.ui_3.0.2/icons/full/pointer
5344 ./plugins/org.eclipse.ui_3.0.2/icons/full
5376 ./plugins/org.eclipse.ui_3.0.2/icons
64 ./plugins/org.eclipse.ui_3.0.2/meta-inf
5664 ./plugins/org.eclipse.ui_3.0.2
256 ./plugins/org.eclipse.update.configurator_3.0.0
64 ./plugins/org.eclipse.osgi.util_3.0.0/meta-inf
192 ./plugins/org.eclipse.osgi.util_3.0.0
64 ./plugins/org.eclipse.osgi.services_3.0.0/meta-inf
224 ./plugins/org.eclipse.osgi.services_3.0.0
13952 ./plugins
32 ./configuration/org.eclipse.osgi/bundles
256 ./configuration/org.eclipse.osgi/manifests
384 ./configuration/org.eclipse.osgi
64 ./configuration/org.eclipse.core.runtime/.manager
160 ./configuration/org.eclipse.core.runtime
96 ./configuration/org.eclipse.update/history
192 ./configuration/org.eclipse.update
832 ./configuration
14880 .

And my logfile


!SESSION Sep 11, 2005 20:50:18.996
---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=unknown, ARCH=x86, WS=unknown, NL=en_US
Command-line arguments: -application
com.ibm.developerworks.google.googleApplication

!ENTRY org.eclipse.osgi Sep 11, 2005 20:50:18.998
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:153)
at
com.ibm.developerworks.google.GoogleApplication.run(GoogleAp plication.java:26)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)

!ENTRY org.eclipse.osgi Sep 11, 2005 20:50:19.00
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)

!ENTRY update@/mnt/winXP/Bachelor/Google/plugins/org.eclipse.ui_3.0 .2/ 0 0
Sep 11, 2005 20:50:19.13
!MESSAGE FrameworkEvent.ERROR
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)

!ENTRY org.eclipse.osgi Sep 11, 2005 20:50:19.16
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)

!ENTRY
update@/mnt/winXP/Bachelor/Google/plugins/org.eclipse.ui.wor kbench_3.0.2/ 0
0 Sep 11, 2005 20:50:19.17
!MESSAGE FrameworkEvent.ERROR
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)

!ENTRY org.eclipse.osgi Sep 11, 2005 20:50:19.21
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)

!ENTRY
update@/mnt/winXP/Bachelor/Google/plugins/com.ibm.developerw orks.google_1.0.0/
0 0 Sep 11, 2005 20:50:19.21
!MESSAGE FrameworkEvent.ERROR
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)
!SESSION Sep 11, 2005 20:53:11.360
---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=unknown, ARCH=x86, WS=unknown, NL=en_US
Command-line arguments: -application
com.ibm.developerworks.google.googleApplication

!ENTRY org.eclipse.osgi Sep 11, 2005 20:53:11.362
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:153)
at
com.ibm.developerworks.google.GoogleApplication.run(GoogleAp plication.java:26)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)

!ENTRY org.eclipse.osgi Sep 11, 2005 20:53:11.366
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)

!ENTRY update@/mnt/winXP/Bachelor/Google/plugins/org.eclipse.ui_3.0 .2/ 0 0
Sep 11, 2005 20:53:11.378
!MESSAGE FrameworkEvent.ERROR
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)

!ENTRY org.eclipse.osgi Sep 11, 2005 20:53:11.382
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)

!ENTRY
update@/mnt/winXP/Bachelor/Google/plugins/org.eclipse.ui.wor kbench_3.0.2/ 0
0 Sep 11, 2005 20:53:11.383
!MESSAGE FrameworkEvent.ERROR
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)

!ENTRY org.eclipse.osgi Sep 11, 2005 20:53:11.386
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)

!ENTRY
update@/mnt/winXP/Bachelor/Google/plugins/com.ibm.developerw orks.google_1.0.0/
0 0 Sep 11, 2005 20:53:11.387
!MESSAGE FrameworkEvent.ERROR
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:804)
at
org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(Abstr actUIPlugin.java:918)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1151)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)
Previous Topic:FormEditor Example
Next Topic:Jogl and Eclipse RCP
Goto Forum:
  


Current Time: Fri Dec 06 05:01:10 GMT 2024

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

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

Back to the top