Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » RCP Tutorial - NoClassDefFound
RCP Tutorial - NoClassDefFound [message #439185] Tue, 06 July 2004 17:08 Go to next message
Preston Lee is currently offline Preston LeeFriend
Messages: 25
Registered: July 2009
Junior Member
I'm moving through the 3-part Rich Client Tutorial article by Ed
Burnette...
http://dev.eclipse.org/viewcvs/index.cgi/%7echeckout%7e/org. eclipse.ui.tutorials.rcp.part1/html/tutorial1.html
....and am having trouble running on Linux (Fedora Core 1, Java 1.4.2_04,
Eclipse 3.0). Part 1 of the tutorial essentially creates is a "Hello,
World" for RCP, and runs fine for me on Windows 2000 with the same Eclipse
and Java versions like this..

java -cp startup.jar org.eclipse.core.launcher.Main -application
org.eclipse.ui.tutorials.rcp.part1.RcpApplication

...after exporting the plugin and copying all libraries to the
appropriate directories. However, doing the same thing on Linux (except
for using org.eclipse.swt.gtk_3.0.0 instead of org.eclipse.swt.win32_3.0.0
of course) results in the error below. I've tried explicitly adding
swt.jar and swt-pi.jar to the classpath with the same outcome. (I tried
this because of the "Root exception: java.lang.NoClassDefFoundError:
org/eclipse/swt/widgets/Control" line in the log.)

I'm relatively new to RCP & SWT and greatly appreciate your help. TIA,

Preston


----BEGIN ERROR----

[plee@plee dist]$ cat configuration/1089132956751.log
!SESSION Jul 06, 2004 09:55:57.920 ---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=unknown, ARCH=x86, WS=unknown, NL=en_US
Command-line arguments: -application org.eclipse.ui.tutorials.rcp.part1.RcpApplication

!ENTRY org.eclipse.osgi Jul 06, 2004 09:55:57.922
!MESSAGE An error occured while automatically activating bundle org.eclipse.ui.workbench (12).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.ui.internal.WorkbenchPlugin.start() of bundle org.eclipse.ui.workbench.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:975)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:937)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:421)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:293)
at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:110)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:371)
at org.eclipse.osgi.framework.internal.core.BundleLoader.requir eClass(BundleLoader.java:336)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findRe quiredClass(BundleLoader.java:914)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
at java.lang.Class.getConstructor0(Class.java:1922)
at java.lang.Class.newInstance0(Class.java:278)
at java.lang.Class.newInstance(Class.java:261)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:141)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:124)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:113)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:330)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
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:638)
at org.eclipse.core.launcher.Main.main(Main.java:622)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Control
at org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:795)
at org.eclipse.ui.plugin.AbstractUIPlugin.start(AbstractUIPlugi n.java:897)
at org.eclipse.ui.internal.WorkbenchPlugin.start(WorkbenchPlugi n.java:619)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleContextImpl.java:958)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:954)
... 29 more
Root exception:
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Control
at org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin.java:795)
at org.eclipse.ui.plugin.AbstractUIPlugin.start(AbstractUIPlugi n.java:897)
at org.eclipse.ui.internal.WorkbenchPlugin.start(WorkbenchPlugi n.java:619)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleContextImpl.java:958)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:954)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:937)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:421)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:293)
at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:110)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:371)
at org.eclipse.osgi.framework.internal.core.BundleLoader.requir eClass(BundleLoader.java:336)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findRe quiredClass(BundleLoader.java:914)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
at java.lang.Class.getConstructor0(Class.java:1922)
at java.lang.Class.newInstance0(Class.java:278)
at java.lang.Class.newInstance(Class.java:261)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:141)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:124)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:113)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:330)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
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:638)
at org.eclipse.core.launcher.Main.main(Main.java:622)

!ENTRY org.eclipse.osgi Jul 06, 2004 09:55:57.925
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/ui/application/WorkbenchAdvisor
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
at java.lang.Class.getConstructor0(Class.java:1922)
at java.lang.Class.newInstance0(Class.java:278)
at java.lang.Class.newInstance(Class.java:261)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:141)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:124)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:113)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:330)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
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:638)
at org.eclipse.core.launcher.Main.main(Main.java:622)

----END ERROR----
Re: RCP Tutorial - NoClassDefFound [message #439201 is a reply to message #439185] Wed, 07 July 2004 06:39 Go to previous messageGo to next message
Stefan Krause is currently offline Stefan KrauseFriend
Messages: 9
Registered: July 2009
Junior Member
Somehow I'm glad to see that I'm not alone with this problem (Eclipse 3.0
SuSE 9.1 + Gtk).
Though the ClassDefNotFoundError says org/eclipse/swt/widgets/Synchronizer
in my case.

Any solutions?

Thanks,
Stefan


"Preston Lee" <plee@unicon.net> wrote in message
news:pan.2004.07.06.17.08.28.481493@unicon.net...
> I'm moving through the 3-part Rich Client Tutorial article by Ed
> Burnette...
>
http://dev.eclipse.org/viewcvs/index.cgi/%7echeckout%7e/org. eclipse.ui.tutorials.rcp.part1/html/tutorial1.html
> ...and am having trouble running on Linux (Fedora Core 1, Java 1.4.2_04,
> Eclipse 3.0). Part 1 of the tutorial essentially creates is a "Hello,
> World" for RCP, and runs fine for me on Windows 2000 with the same Eclipse
> and Java versions like this..
>
> java -cp startup.jar org.eclipse.core.launcher.Main -application
> org.eclipse.ui.tutorials.rcp.part1.RcpApplication
>
> ..after exporting the plugin and copying all libraries to the
> appropriate directories. However, doing the same thing on Linux (except
> for using org.eclipse.swt.gtk_3.0.0 instead of org.eclipse.swt.win32_3.0.0
> of course) results in the error below. I've tried explicitly adding
> swt.jar and swt-pi.jar to the classpath with the same outcome. (I tried
> this because of the "Root exception: java.lang.NoClassDefFoundError:
> org/eclipse/swt/widgets/Control" line in the log.)
>
> I'm relatively new to RCP & SWT and greatly appreciate your help. TIA,
>
> Preston
>
>
> ----BEGIN ERROR----
>
> [plee@plee dist]$ cat configuration/1089132956751.log
> !SESSION Jul 06, 2004
09:55:57.920 ---------------------------------------------
> eclipse.buildId=unknown
> java.version=1.4.2_04
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=unknown, ARCH=x86, WS=unknown, NL=en_US
> Command-line arguments: -application
org.eclipse.ui.tutorials.rcp.part1.RcpApplication
>
> !ENTRY org.eclipse.osgi Jul 06, 2004 09:55:57.922
> !MESSAGE An error occured while automatically activating bundle
org.eclipse.ui.workbench (12).
> !STACK 0
> org.osgi.framework.BundleException: Exception in
org.eclipse.ui.internal.WorkbenchPlugin.start() of bundle
org.eclipse.ui.workbench.
> at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
ndleContextImpl.java:975)
> at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
xtImpl.java:937)
> at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
ava:421)
> at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
..java:293)
> at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseCl
assLoader.java:110)
> at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleL
oader.java:371)
> at
org.eclipse.osgi.framework.internal.core.BundleLoader.requir eClass(BundleLoa
der.java:336)
> at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRe quiredClass(Bund
leLoader.java:914)
> at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
..java:399)
> at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
ctClassLoader.java:93)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
> at java.lang.Class.getConstructor0(Class.java:1922)
> at java.lang.Class.newInstance0(Class.java:278)
> at java.lang.Class.newInstance(Class.java:261)
> at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:141)
> at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:124)
> at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:113)
> at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:330)
> at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
> at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
> 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:638)
> at org.eclipse.core.launcher.Main.main(Main.java:622)
> Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Control
> at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin
..java:795)
> at
org.eclipse.ui.plugin.AbstractUIPlugin.start(AbstractUIPlugi n.java:897)
> at
org.eclipse.ui.internal.WorkbenchPlugin.start(WorkbenchPlugi n.java:619)
> at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleConte
xtImpl.java:958)
> at java.security.AccessController.doPrivileged(Native Method)
> at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
ndleContextImpl.java:954)
> ... 29 more
> Root exception:
> java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Control
> at
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin
..java:795)
> at
org.eclipse.ui.plugin.AbstractUIPlugin.start(AbstractUIPlugi n.java:897)
> at
org.eclipse.ui.internal.WorkbenchPlugin.start(WorkbenchPlugi n.java:619)
> at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleConte
xtImpl.java:958)
> at java.security.AccessController.doPrivileged(Native Method)
> at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
ndleContextImpl.java:954)
> at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
xtImpl.java:937)
> at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
ava:421)
> at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
..java:293)
> at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseCl
assLoader.java:110)
> at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleL
oader.java:371)
> at
org.eclipse.osgi.framework.internal.core.BundleLoader.requir eClass(BundleLoa
der.java:336)
> at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRe quiredClass(Bund
leLoader.java:914)
> at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
..java:399)
> at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
ctClassLoader.java:93)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
> at java.lang.Class.getConstructor0(Class.java:1922)
> at java.lang.Class.newInstance0(Class.java:278)
> at java.lang.Class.newInstance(Class.java:261)
> at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:141)
> at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:124)
> at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:113)
> at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:330)
> at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
> at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
> 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:638)
> at org.eclipse.core.launcher.Main.main(Main.java:622)
>
> !ENTRY org.eclipse.osgi Jul 06, 2004 09:55:57.925
> !MESSAGE Application error
> !STACK 1
> java.lang.NoClassDefFoundError:
org/eclipse/ui/application/WorkbenchAdvisor
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
> at java.lang.Class.getConstructor0(Class.java:1922)
> at java.lang.Class.newInstance0(Class.java:278)
> at java.lang.Class.newInstance(Class.java:261)
> at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:141)
> at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:124)
> at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:113)
> at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:330)
> at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
> at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
> 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:638)
> at org.eclipse.core.launcher.Main.main(Main.java:622)
>
> ----END ERROR----
Re: RCP Tutorial - NoClassDefFound [message #439238 is a reply to message #439201] Thu, 08 July 2004 02:35 Go to previous messageGo to next message
Ed Burnette is currently offline Ed BurnetteFriend
Messages: 279
Registered: July 2009
Senior Member
Well, I know some people have it working on Linux under GTK but it seems to
be a little tricky. You need to have that extra swt-pi jar file, which you
apparently already have, and one person reported they had to add some java
command line options (-os linux -ws gtk -arch x86 -nl en_US, see
http://sourceforge.net/mailarchive/message.php?msg_id=863861 4). Another said
that 1.4.2 was required, which you already have. I'll copy this to the
eclipsepowered list to see if anybody there has any other advice.

Also see the instructions for launching the RCP Browser example at
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -ui-home/rcp/index.html .
That might work better than running java directly. Let us know what worked
for you.

--
Ed Burnette, co-author, Eclipse in Action
www.eclipsepowered.org

"Stefan Krause" <Stefan.Krause@gmx.atnospam> wrote in message
news:ccg5qb$qdj$1@eclipse.org...
> Somehow I'm glad to see that I'm not alone with this problem (Eclipse 3.0
> SuSE 9.1 + Gtk).
> Though the ClassDefNotFoundError says org/eclipse/swt/widgets/Synchronizer
> in my case.
>
> Any solutions?
>
> Thanks,
> Stefan
>
>
> "Preston Lee" <plee@unicon.net> wrote in message
> news:pan.2004.07.06.17.08.28.481493@unicon.net...
> > I'm moving through the 3-part Rich Client Tutorial article by Ed
> > Burnette...
> >
>
http://dev.eclipse.org/viewcvs/index.cgi/%7echeckout%7e/org. eclipse.ui.tutorials.rcp.part1/html/tutorial1.html
> > ...and am having trouble running on Linux (Fedora Core 1, Java 1.4.2_04,
> > Eclipse 3.0). Part 1 of the tutorial essentially creates is a "Hello,
> > World" for RCP, and runs fine for me on Windows 2000 with the same
Eclipse
> > and Java versions like this..
> >
> > java -cp startup.jar org.eclipse.core.launcher.Main -application
> > org.eclipse.ui.tutorials.rcp.part1.RcpApplication
> >
> > ..after exporting the plugin and copying all libraries to the
> > appropriate directories. However, doing the same thing on Linux (except
> > for using org.eclipse.swt.gtk_3.0.0 instead of
org.eclipse.swt.win32_3.0.0
> > of course) results in the error below. I've tried explicitly adding
> > swt.jar and swt-pi.jar to the classpath with the same outcome. (I tried
> > this because of the "Root exception: java.lang.NoClassDefFoundError:
> > org/eclipse/swt/widgets/Control" line in the log.)
> >
> > I'm relatively new to RCP & SWT and greatly appreciate your help. TIA,
> >
> > Preston
> >
> >
> > ----BEGIN ERROR----
> >
> > [plee@plee dist]$ cat configuration/1089132956751.log
> > !SESSION Jul 06, 2004
> 09:55:57.920 ---------------------------------------------
> > eclipse.buildId=unknown
> > java.version=1.4.2_04
> > java.vendor=Sun Microsystems Inc.
> > BootLoader constants: OS=unknown, ARCH=x86, WS=unknown, NL=en_US
> > Command-line arguments: -application
> org.eclipse.ui.tutorials.rcp.part1.RcpApplication
> >
> > !ENTRY org.eclipse.osgi Jul 06, 2004 09:55:57.922
> > !MESSAGE An error occured while automatically activating bundle
> org.eclipse.ui.workbench (12).
> > !STACK 0
> > org.osgi.framework.BundleException: Exception in
> org.eclipse.ui.internal.WorkbenchPlugin.start() of bundle
> org.eclipse.ui.workbench.
> > at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
> ndleContextImpl.java:975)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
> xtImpl.java:937)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
> ava:421)
> > at
>
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
> .java:293)
> > at
>
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseCl
> assLoader.java:110)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleL
> oader.java:371)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.requir eClass(BundleLoa
> der.java:336)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findRe quiredClass(Bund
> leLoader.java:914)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
> .java:399)
> > at
>
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
> ctClassLoader.java:93)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
> > at java.lang.Class.getDeclaredConstructors0(Native Method)
> > at
java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
> > at java.lang.Class.getConstructor0(Class.java:1922)
> > at java.lang.Class.newInstance0(Class.java:278)
> > at java.lang.Class.newInstance(Class.java:261)
> > at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:141)
> > at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:124)
> > at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:113)
> > at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:330)
> > at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
> > at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
> > 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:638)
> > at org.eclipse.core.launcher.Main.main(Main.java:622)
> > Caused by: java.lang.NoClassDefFoundError:
org/eclipse/swt/widgets/Control
> > at
>
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin
> .java:795)
> > at
> org.eclipse.ui.plugin.AbstractUIPlugin.start(AbstractUIPlugi n.java:897)
> > at
> org.eclipse.ui.internal.WorkbenchPlugin.start(WorkbenchPlugi n.java:619)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleConte
> xtImpl.java:958)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
> ndleContextImpl.java:954)
> > ... 29 more
> > Root exception:
> > java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Control
> > at
>
org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin
> .java:795)
> > at
> org.eclipse.ui.plugin.AbstractUIPlugin.start(AbstractUIPlugi n.java:897)
> > at
> org.eclipse.ui.internal.WorkbenchPlugin.start(WorkbenchPlugi n.java:619)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleConte
> xtImpl.java:958)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
> ndleContextImpl.java:954)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
> xtImpl.java:937)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
> ava:421)
> > at
>
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
> .java:293)
> > at
>
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseCl
> assLoader.java:110)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleL
> oader.java:371)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.requir eClass(BundleLoa
> der.java:336)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findRe quiredClass(Bund
> leLoader.java:914)
> > at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
> .java:399)
> > at
>
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
> ctClassLoader.java:93)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
> > at java.lang.Class.getDeclaredConstructors0(Native Method)
> > at
java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
> > at java.lang.Class.getConstructor0(Class.java:1922)
> > at java.lang.Class.newInstance0(Class.java:278)
> > at java.lang.Class.newInstance(Class.java:261)
> > at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:141)
> > at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:124)
> > at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:113)
> > at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:330)
> > at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
> > at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
> > 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:638)
> > at org.eclipse.core.launcher.Main.main(Main.java:622)
> >
> > !ENTRY org.eclipse.osgi Jul 06, 2004 09:55:57.925
> > !MESSAGE Application error
> > !STACK 1
> > java.lang.NoClassDefFoundError:
> org/eclipse/ui/application/WorkbenchAdvisor
> > at java.lang.Class.getDeclaredConstructors0(Native Method)
> > at
java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
> > at java.lang.Class.getConstructor0(Class.java:1922)
> > at java.lang.Class.newInstance0(Class.java:278)
> > at java.lang.Class.newInstance(Class.java:261)
> > at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:141)
> > at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:124)
> > at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:113)
> > at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:330)
> > at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
> > at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
> > 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:638)
> > at org.eclipse.core.launcher.Main.main(Main.java:622)
> >
> > ----END ERROR----
>
>
Re: RCP Tutorial - NoClassDefFound [message #439251 is a reply to message #439238] Thu, 08 July 2004 18:05 Go to previous messageGo to next message
Preston Lee is currently offline Preston LeeFriend
Messages: 25
Registered: July 2009
Junior Member
Ed,

Thanks a ton for the pointers. As soon as I added the following
arguments..

-os linux -ws gtk -arch x86 -nl en_US

...the applications launches as expected. If there's any additional
information I can provide to help get the problem hammered out I'd be
happy to provide it. Thanks!

Preston


On Wed, 07 Jul 2004 22:35:33 -0400, Ed Burnette wrote:

> Well, I know some people have it working on Linux under GTK but it seems
> to be a little tricky. You need to have that extra swt-pi jar file,
> which you apparently already have, and one person reported they had to
> add some java command line options (-os linux -ws gtk -arch x86 -nl
> en_US, see
> http://sourceforge.net/mailarchive/message.php?msg_id=863861 4). Another
> said that 1.4.2 was required, which you already have. I'll copy this to
> the eclipsepowered list to see if anybody there has any other advice.
>
> Also see the instructions for launching the RCP Browser example at
> http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -ui-home/rcp/index.html
> . That might work better than running java directly. Let us know what
> worked for you.
Re: RCP Tutorial - NoClassDefFound [message #439307 is a reply to message #439201] Fri, 09 July 2004 06:08 Go to previous messageGo to next message
Ted is currently offline TedFriend
Messages: 22
Registered: July 2009
Junior Member
Stefan Krause wrote:
> Somehow I'm glad to see that I'm not alone with this problem (Eclipse 3.0
> SuSE 9.1 + Gtk).
> Though the ClassDefNotFoundError says org/eclipse/swt/widgets/Synchronizer
> in my case.
>
> Any solutions?
>
> Thanks,
> Stefan
>
>
> "Preston Lee" <plee@unicon.net> wrote in message
> news:pan.2004.07.06.17.08.28.481493@unicon.net...
>
>>I'm moving through the 3-part Rich Client Tutorial article by Ed
>>Burnette...
>>
>
> http://dev.eclipse.org/viewcvs/index.cgi/%7echeckout%7e/org. eclipse.ui.tutorials.rcp.part1/html/tutorial1.html
>
>>...and am having trouble running on Linux (Fedora Core 1, Java 1.4.2_04,
>>Eclipse 3.0). Part 1 of the tutorial essentially creates is a "Hello,
>>World" for RCP, and runs fine for me on Windows 2000 with the same Eclipse
>>and Java versions like this..
>>
>>java -cp startup.jar org.eclipse.core.launcher.Main -application
>>org.eclipse.ui.tutorials.rcp.part1.RcpApplication
>>
>>..after exporting the plugin and copying all libraries to the
>>appropriate directories. However, doing the same thing on Linux (except
>>for using org.eclipse.swt.gtk_3.0.0 instead of org.eclipse.swt.win32_3.0.0
>>of course) results in the error below. I've tried explicitly adding
>>swt.jar and swt-pi.jar to the classpath with the same outcome. (I tried
>>this because of the "Root exception: java.lang.NoClassDefFoundError:
>>org/eclipse/swt/widgets/Control" line in the log.)
>>
>>I'm relatively new to RCP & SWT and greatly appreciate your help. TIA,
>>
>>Preston
>>
>>
>>----BEGIN ERROR----
>>
>>[plee@plee dist]$ cat configuration/1089132956751.log
>>!SESSION Jul 06, 2004
>
> 09:55:57.920 ---------------------------------------------
>
>>eclipse.buildId=unknown
>>java.version=1.4.2_04
>>java.vendor=Sun Microsystems Inc.
>>BootLoader constants: OS=unknown, ARCH=x86, WS=unknown, NL=en_US
>>Command-line arguments: -application
>
> org.eclipse.ui.tutorials.rcp.part1.RcpApplication
>
>>!ENTRY org.eclipse.osgi Jul 06, 2004 09:55:57.922
>>!MESSAGE An error occured while automatically activating bundle
>
> org.eclipse.ui.workbench (12).
>
>>!STACK 0
>>org.osgi.framework.BundleException: Exception in
>
> org.eclipse.ui.internal.WorkbenchPlugin.start() of bundle
> org.eclipse.ui.workbench.
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
> ndleContextImpl.java:975)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
> xtImpl.java:937)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
> ava:421)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
> .java:293)
>
>> at
>
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseCl
> assLoader.java:110)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleL
> oader.java:371)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleLoader.requir eClass(BundleLoa
> der.java:336)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleLoader.findRe quiredClass(Bund
> leLoader.java:914)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
> .java:399)
>
>> at
>
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
> ctClassLoader.java:93)
>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>> at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
>> at java.lang.Class.getConstructor0(Class.java:1922)
>> at java.lang.Class.newInstance0(Class.java:278)
>> at java.lang.Class.newInstance(Class.java:261)
>> at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:141)
>
>> at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:124)
>
>> at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:113)
>
>> at
>
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:330)
>
>> at
>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
>
>> at
>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
>
>> 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:638)
>> at org.eclipse.core.launcher.Main.main(Main.java:622)
>>Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Control
>> at
>
> org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin
> .java:795)
>
>> at
>
> org.eclipse.ui.plugin.AbstractUIPlugin.start(AbstractUIPlugi n.java:897)
>
>> at
>
> org.eclipse.ui.internal.WorkbenchPlugin.start(WorkbenchPlugi n.java:619)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleConte
> xtImpl.java:958)
>
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
> ndleContextImpl.java:954)
>
>> ... 29 more
>>Root exception:
>>java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Control
>> at
>
> org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin
> .java:795)
>
>> at
>
> org.eclipse.ui.plugin.AbstractUIPlugin.start(AbstractUIPlugi n.java:897)
>
>> at
>
> org.eclipse.ui.internal.WorkbenchPlugin.start(WorkbenchPlugi n.java:619)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleConte
> xtImpl.java:958)
>
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
> ndleContextImpl.java:954)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
> xtImpl.java:937)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
> ava:421)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
> .java:293)
>
>> at
>
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseCl
> assLoader.java:110)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleL
> oader.java:371)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleLoader.requir eClass(BundleLoa
> der.java:336)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleLoader.findRe quiredClass(Bund
> leLoader.java:914)
>
>> at
>
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
> .java:399)
>
>> at
>
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
> ctClassLoader.java:93)
>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>> at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
>> at java.lang.Class.getConstructor0(Class.java:1922)
>> at java.lang.Class.newInstance0(Class.java:278)
>> at java.lang.Class.newInstance(Class.java:261)
>> at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:141)
>
>> at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:124)
>
>> at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:113)
>
>> at
>
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:330)
>
>> at
>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
>
>> at
>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
>
>> 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:638)
>> at org.eclipse.core.launcher.Main.main(Main.java:622)
>>
>>!ENTRY org.eclipse.osgi Jul 06, 2004 09:55:57.925
>>!MESSAGE Application error
>>!STACK 1
>>java.lang.NoClassDefFoundError:
>
> org/eclipse/ui/application/WorkbenchAdvisor
>
>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>> at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
>> at java.lang.Class.getConstructor0(Class.java:1922)
>> at java.lang.Class.newInstance0(Class.java:278)
>> at java.lang.Class.newInstance(Class.java:261)
>> at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:141)
>
>> at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:124)
>
>> at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:113)
>
>> at
>
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:330)
>
>> at
>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
>
>> at
>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
>
>> 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:638)
>> at org.eclipse.core.launcher.Main.main(Main.java:622)
>>
>>----END ERROR----
>
>
>

I assume some people try to play with Eclipse and Rich Client Platform,
especially through reading "Rich Client Tutorial Part 1".

The example source codes "Part 1,2, 3" all work when you build it in the
Eclipse environment.

But how to get it working on the command line?
The author, Ed Burnette, gave the script for windows. But for linux
platform, Ed just ignored it. Ed only suggested it should be very
similiar. But if you try to copy and run it, it does not work. You are
then in blue.

I tried randomly. I added some options. Then luckily it works. I then
can continue the Tutorial Part 2 amd Part 3.

That is the trial:

// Command line
sh-2.05b$ java -cp ../startup.jar org.eclipse.core.launcher.Main
-application org.eclipse.ui.tutorials.rcp.part1.RcpApplication -os linux
-ws gtk -arch x86 -nl en_US -clean -consoleLog

// where am I ?
sh-2.05b$ pwd
/home/tzhou/RCP/plugins

// List what have you copied
sh-2.05b$ ls
org.eclipse.core.expressions_3.0.0
org.eclipse.osgi_3.0.0
org.eclipse.ui.workbench_3.0.0
org.eclipse.core.runtime_3.0.0
org.eclipse.swt.gtk_3.0.0
org.eclipse.ui_3.0.0
org.eclipse.help_3.0.0
org.eclipse.swt_3.0.0
org.eclipse.update.configurator_3.0.0
org.eclipse.jface_3.0.0
org.eclipse.ui.tutorials.rcp.part1_1.0.0
workspace

// List upper directory
sh-2.05b$ ls -a ..
.. .. configuration plugins startup.jar

From the above, you get the idea the directory structure and which
plugin should be there. Becareful the java classpath.

Hopefully it help you out and save you time and have a good day.


Ted Zhou
Re: RCP Tutorial - NoClassDefFound [message #439346 is a reply to message #439307] Sun, 11 July 2004 15:45 Go to previous messageGo to next message
Stefan Krause is currently offline Stefan KrauseFriend
Messages: 9
Registered: July 2009
Junior Member
Thanks it started to work for me as soon as I added both -os linux and
-ws gtk !


Ted wrote:
> Stefan Krause wrote:
>
>> Somehow I'm glad to see that I'm not alone with this problem (Eclipse 3.0
>> SuSE 9.1 + Gtk).
>> Though the ClassDefNotFoundError says
>> org/eclipse/swt/widgets/Synchronizer
>> in my case.
>>
>> Any solutions?
>>
>> Thanks,
>> Stefan
>>
>>
>> "Preston Lee" <plee@unicon.net> wrote in message
>> news:pan.2004.07.06.17.08.28.481493@unicon.net...
>>
>>> I'm moving through the 3-part Rich Client Tutorial article by Ed
>>> Burnette...
>>>
>>
>> http://dev.eclipse.org/viewcvs/index.cgi/%7echeckout%7e/org. eclipse.ui.tutorials.rcp.part1/html/tutorial1.html
>>
>>
>>> ...and am having trouble running on Linux (Fedora Core 1, Java 1.4.2_04,
>>> Eclipse 3.0). Part 1 of the tutorial essentially creates is a "Hello,
>>> World" for RCP, and runs fine for me on Windows 2000 with the same
>>> Eclipse
>>> and Java versions like this..
>>>
>>> java -cp startup.jar org.eclipse.core.launcher.Main -application
>>> org.eclipse.ui.tutorials.rcp.part1.RcpApplication
>>>
>>> ..after exporting the plugin and copying all libraries to the
>>> appropriate directories. However, doing the same thing on Linux (except
>>> for using org.eclipse.swt.gtk_3.0.0 instead of
>>> org.eclipse.swt.win32_3.0.0
>>> of course) results in the error below. I've tried explicitly adding
>>> swt.jar and swt-pi.jar to the classpath with the same outcome. (I tried
>>> this because of the "Root exception: java.lang.NoClassDefFoundError:
>>> org/eclipse/swt/widgets/Control" line in the log.)
>>>
>>> I'm relatively new to RCP & SWT and greatly appreciate your help. TIA,
>>>
>>> Preston
>>>
>>>
>>> ----BEGIN ERROR----
>>>
>>> [plee@plee dist]$ cat configuration/1089132956751.log
>>> !SESSION Jul 06, 2004
>>
>>
>> 09:55:57.920 ---------------------------------------------
>>
>>> eclipse.buildId=unknown
>>> java.version=1.4.2_04
>>> java.vendor=Sun Microsystems Inc.
>>> BootLoader constants: OS=unknown, ARCH=x86, WS=unknown, NL=en_US
>>> Command-line arguments: -application
>>
>>
>> org.eclipse.ui.tutorials.rcp.part1.RcpApplication
>>
>>> !ENTRY org.eclipse.osgi Jul 06, 2004 09:55:57.922
>>> !MESSAGE An error occured while automatically activating bundle
>>
>>
>> org.eclipse.ui.workbench (12).
>>
>>> !STACK 0
>>> org.osgi.framework.BundleException: Exception in
>>
>>
>> org.eclipse.ui.internal.WorkbenchPlugin.start() of bundle
>> org.eclipse.ui.workbench.
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
>>
>> ndleContextImpl.java:975)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
>>
>> xtImpl.java:937)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
>>
>> ava:421)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
>>
>> .java:293)
>>
>>> at
>>
>>
>> org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseCl
>>
>> assLoader.java:110)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleL
>>
>> oader.java:371)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleLoader.requir eClass(BundleLoa
>>
>> der.java:336)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findRe quiredClass(Bund
>>
>> leLoader.java:914)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
>>
>> .java:399)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
>>
>> ctClassLoader.java:93)
>>
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
>>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>> at
>>> java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
>>> at java.lang.Class.getConstructor0(Class.java:1922)
>>> at java.lang.Class.newInstance0(Class.java:278)
>>> at java.lang.Class.newInstance(Class.java:261)
>>> at
>>
>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>>
>> nsion(ConfigurationElement.java:141)
>>
>>> at
>>
>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>>
>> nsion(ConfigurationElement.java:124)
>>
>>> at
>>
>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>>
>> nsion(ConfigurationElement.java:113)
>>
>>> at
>>
>>
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
>>
>> java:330)
>>
>>> at
>>
>>
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
>>
>>
>>> at
>>
>>
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
>>
>>
>>> 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:638)
>>> at org.eclipse.core.launcher.Main.main(Main.java:622)
>>> Caused by: java.lang.NoClassDefFoundError:
>>> org/eclipse/swt/widgets/Control
>>> at
>>
>>
>> org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin
>>
>> .java:795)
>>
>>> at
>>
>>
>> org.eclipse.ui.plugin.AbstractUIPlugin.start(AbstractUIPlugi n.java:897)
>>
>>> at
>>
>>
>> org.eclipse.ui.internal.WorkbenchPlugin.start(WorkbenchPlugi n.java:619)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleConte
>>
>> xtImpl.java:958)
>>
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
>>
>> ndleContextImpl.java:954)
>>
>>> ... 29 more
>>> Root exception:
>>> java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Control
>>> at
>>
>>
>> org.eclipse.ui.plugin.AbstractUIPlugin.refreshPluginActions( AbstractUIPlugin
>>
>> .java:795)
>>
>>> at
>>
>>
>> org.eclipse.ui.plugin.AbstractUIPlugin.start(AbstractUIPlugi n.java:897)
>>
>>> at
>>
>>
>> org.eclipse.ui.internal.WorkbenchPlugin.start(WorkbenchPlugi n.java:619)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleConte
>>
>> xtImpl.java:958)
>>
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
>>
>> ndleContextImpl.java:954)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
>>
>> xtImpl.java:937)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
>>
>> ava:421)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
>>
>> .java:293)
>>
>>> at
>>
>>
>> org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseCl
>>
>> assLoader.java:110)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleL
>>
>> oader.java:371)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleLoader.requir eClass(BundleLoa
>>
>> der.java:336)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findRe quiredClass(Bund
>>
>> leLoader.java:914)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
>>
>> .java:399)
>>
>>> at
>>
>>
>> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
>>
>> ctClassLoader.java:93)
>>
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
>>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>> at
>>> java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
>>> at java.lang.Class.getConstructor0(Class.java:1922)
>>> at java.lang.Class.newInstance0(Class.java:278)
>>> at java.lang.Class.newInstance(Class.java:261)
>>> at
>>
>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>>
>> nsion(ConfigurationElement.java:141)
>>
>>> at
>>
>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>>
>> nsion(ConfigurationElement.java:124)
>>
>>> at
>>
>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>>
>> nsion(ConfigurationElement.java:113)
>>
>>> at
>>
>>
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
>>
>> java:330)
>>
>>> at
>>
>>
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
>>
>>
>>> at
>>
>>
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
>>
>>
>>> 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:638)
>>> at org.eclipse.core.launcher.Main.main(Main.java:622)
>>>
>>> !ENTRY org.eclipse.osgi Jul 06, 2004 09:55:57.925
>>> !MESSAGE Application error
>>> !STACK 1
>>> java.lang.NoClassDefFoundError:
>>
>>
>> org/eclipse/ui/application/WorkbenchAdvisor
>>
>>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>> at
>>> java.lang.Class.privateGetDeclaredConstructors(Class.java:16 10)
>>> at java.lang.Class.getConstructor0(Class.java:1922)
>>> at java.lang.Class.newInstance0(Class.java:278)
>>> at java.lang.Class.newInstance(Class.java:261)
>>> at
>>
>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>>
>> nsion(ConfigurationElement.java:141)
>>
>>> at
>>
>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>>
>> nsion(ConfigurationElement.java:124)
>>
>>> at
>>
>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>>
>> nsion(ConfigurationElement.java:113)
>>
>>> at
>>
>>
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
>>
>> java:330)
>>
>>> at
>>
>>
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:272)
>>
>>
>>> at
>>
>>
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
>>
>>
>>> 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:638)
>>> at org.eclipse.core.launcher.Main.main(Main.java:622)
>>>
>>> ----END ERROR----
>>
>>
>>
>>
>
> I assume some people try to play with Eclipse and Rich Client Platform,
> especially through reading "Rich Client Tutorial Part 1".
>
> The example source codes "Part 1,2, 3" all work when you build it in the
> Eclipse environment.
>
> But how to get it working on the command line?
> The author, Ed Burnette, gave the script for windows. But for linux
> platform, Ed just ignored it. Ed only suggested it should be very
> similiar. But if you try to copy and run it, it does not work. You are
> then in blue.
>
> I tried randomly. I added some options. Then luckily it works. I then
> can continue the Tutorial Part 2 amd Part 3.
>
> That is the trial:
>
> // Command line
> sh-2.05b$ java -cp ../startup.jar org.eclipse.core.launcher.Main
> -application org.eclipse.ui.tutorials.rcp.part1.RcpApplication -os linux
> -ws gtk -arch x86 -nl en_US -clean -consoleLog
>
> // where am I ?
> sh-2.05b$ pwd
> /home/tzhou/RCP/plugins
>
> // List what have you copied
> sh-2.05b$ ls
> org.eclipse.core.expressions_3.0.0
> org.eclipse.osgi_3.0.0
> org.eclipse.ui.workbench_3.0.0
> org.eclipse.core.runtime_3.0.0
> org.eclipse.swt.gtk_3.0.0
> org.eclipse.ui_3.0.0
> org.eclipse.help_3.0.0
> org.eclipse.swt_3.0.0 org.eclipse.update.configurator_3.0.0
> org.eclipse.jface_3.0.0 org.eclipse.ui.tutorials.rcp.part1_1.0.0
> workspace
>
> // List upper directory
> sh-2.05b$ ls -a ..
> . .. configuration plugins startup.jar
>
> From the above, you get the idea the directory structure and which
> plugin should be there. Becareful the java classpath.
>
> Hopefully it help you out and save you time and have a good day.
>
>
> Ted Zhou
>
Re: RCP Tutorial - NoClassDefFound [message #439516 is a reply to message #439307] Tue, 13 July 2004 02:24 Go to previous message
Ed Burnette is currently offline Ed BurnetteFriend
Messages: 279
Registered: July 2009
Senior Member
Ok, I just added some notes about the suggested options for Linux and MacOS
to the first tutorial. Thanks for the info.

--
Ed


"Ted" <ted@x.y.z.com> wrote in message news:cclcnk$djq$1@eclipse.org...
>
> But how to get it working on the command line?
> The author, Ed Burnette, gave the script for windows. But for linux
> platform, Ed just ignored it. Ed only suggested it should be very
> similiar. But if you try to copy and run it, it does not work. You are
> then in blue.
>
> I tried randomly. I added some options. Then luckily it works. I then
> can continue the Tutorial Part 2 amd Part 3.
Previous Topic:RCP Browser at RCP home page cann not work properly on Linux gtk eclipse?
Next Topic:How to pop-up a message before closing the editor
Goto Forum:
  


Current Time: Thu Apr 25 00:29:40 GMT 2024

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

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

Back to the top