Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] java.lang.NoClassDefFoundError: org.eclipse.swt.SWTError when launching from a tycho build

Are you sure SWT fragment for your platform is in the project target
platform? Are you able to run itp01 Tycho demo project from [1] locally?

[1] http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-demo

--
Regards,
Igor

On 12-02-21 11:42 AM, Brian L Kozitza wrote:
I am having a problem where the tycho build goes fine, however when I
launch my application, it fails to bring up the GUI because of
java.lang.NoClassDefFoundError: org.eclipse.swt.SWTError

I have the DeltaPack build as a p2 repository and specified in my pom
file, I am doing the build on linux and trying to run it on linux. Here
is the output of the .log


!SESSION 2012-02-21 10:35:50.638
-----------------------------------------------
eclipse.buildId=unknown
java.fullversion=JRE 1.6.0 IBM J9 2.4 Linux x86-32
jvmxi3260sr9-20101124_69295 (JIT enabled, AOT enabled)
J9VM - 20101124_069295
JIT - r9_20101028_17488ifx2
GC - 20101027_AA
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86

!ENTRY org.eclipse.equinox.app 0 0 2012-02-21 10:36:05.498
!MESSAGE Product com.ibm.hdwb.product.hdwbUI.product could not be found.

!ENTRY org.eclipse.osgi 4 0 2012-02-21 10:36:06.085
!MESSAGE An error occurred while automatically activating bundle
org.eclipse.ui.workbench (314).
!STACK 0
org.osgi.framework.BundleException: The activator
org.eclipse.ui.internal.WorkbenchPlugin for bundle
org.eclipse.ui.workbench is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:171)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)

at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)

at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at
org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)

at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:462)

at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)

at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)

at
org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:103)

at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:275)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:601)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:567)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:490)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:478)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:451)

at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)

at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:103)

at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
at
org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)

at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)

at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:164)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)

at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)

at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at
org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)

at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:462)

at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)

at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:103)

at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
at
org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)

at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)

at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)

at
org.eclipse.equinox.internal.ds.model.ServiceComponent.createInstance(ServiceComponent.java:480)

at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.createInstance(ServiceComponentProp.java:271)

at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:332)

at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)

at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)

at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)

at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)

at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)

at
org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:504)

at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:212)

at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)

at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)

at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)

at
org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:504)

at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:212)

at
org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:441)

at
org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:213)

at
org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:800)
at
org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:767)

at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at
org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)

Caused by: java.lang.NoClassDefFoundError: org.eclipse.swt.SWTError
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.verify(J9VMInternals.java:70)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1345)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:166)

... 87 more

------------------------------------------------------------------------
Brian Kozitza
kozitza@xxxxxxxxxx


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top