Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » 32 Bit Eclipse RCP Plugin application not working when compiled in 64 bit -Eclipse Mars(32 Bit Eclipse RCP Plugin application not working when compiled in 64 bit -Eclipse Mars)
32 Bit Eclipse RCP Plugin application not working when compiled in 64 bit -Eclipse Mars [message #1709686] Wed, 30 September 2015 11:25 Go to next message
Thirumalmarugan Ramasamy is currently offline Thirumalmarugan RamasamyFriend
Messages: 2
Registered: September 2015
Junior Member
We are migrating from Eclipse 3.5 RCP to Eclispse Mars RCP.

In eclipse 3.5 RCP, we can able to launch our application in both 32bit and 64bit machines, even if the product export was done in either 32 or 64 bit eclipse. But in case of Eclipse Mars RCP, if we export the product using 64 bit eclipse then its not working in 32bit machines and its working fine in 64bit machine. As similar to this if we export product using 32bit eclipse its working fine in 32bit machine and its not working in 64 bit

I export project using export product wizard in eclipse mars 64bit version. After that i bunbled that product in to war and deployed the same in server. By using jnlp file, the product gets downloaded sucessfully to local client machine. Its get launched sucessfully in 64bit machines. But launching the application in 32bit machine we are getting below mentioned exception.


Exception:
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.equinox.ds [3]
Unresolved requirement: Import-Package: org.eclipse.equinox.internal.util.event; version="1.0.0"

at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
After googling we found that if we add org.eclipse.update.* jars which was present in plugin folder during exporting the product it may resolve this issue. After adding this above mentioned issue was resolved but getting org.eclispe.swt error.

Error Log
!SESSION 2015-09-23 15:02:06.883 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.osgi 4 0 2015-09-23 15:02:31.177
!MESSAGE An error occurred while automatically activating bundle org.eclipse.ui.workbench (78).
!STACK 0
org.osgi.framework.BundleException: Error starting module.
at org.eclipse.osgi.container.Module.doStart(Module.java:580)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.framework.util.SecureAction$22.run(SecureAction.java:460)
at org.eclipse.osgi.framework.util.SecureAction$22.run(SecureAction.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:458)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:531)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:327)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:402)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:754)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.framework.util.SecureAction$22.run(SecureAction.java:460)
at org.eclipse.osgi.framework.util.SecureAction$22.run(SecureAction.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:458)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:531)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:327)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:402)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:573)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
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 com.*****..tool.installer.Installer.launchEclipse(Installer.java:959)
at com.*****..tool.installer.Installer.run(Installer.java:510)
at com.*****..tool.installer.Installer.main(Installer.java:1128)
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 com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
... 57 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError cannot be found by org.eclipse.ui.workbench_3.107.0.v20150510-1732
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 66 more




!ENTRY org.eclipse.swt.win32.win32.x86_64 2 0 2015-09-23 15:02:31.190
!MESSAGE Could not resolve module: org.eclipse.swt.win32.win32.x86_64 [91]
Unresolved requirement: Require-Capability: eclipse.platform; filter:="(& (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86_64))"


!ENTRY org.eclipse.core.resources.win32.x86_64 2 0 2015-09-23 15:02:31.191
!MESSAGE Could not resolve module: org.eclipse.core.resources.win32.x86_64 [87]
Unresolved requirement: Require-Capability: eclipse.platform; filter:="(& (osgi.os=win32) (osgi.arch=x86_64))"


!ENTRY org.eclipse.core.filesystem.win32.x86_64 2 0 2015-09-23 15:02:31.191
!MESSAGE Could not resolve module: org.eclipse.core.filesystem.win32.x86_64 [86]
Unresolved requirement: Require-Capability: eclipse.platform; filter:="(& (osgi.os=win32) (osgi.arch=x86_64))"


!ENTRY org.eclipse.equinox.security.win32.x86_64 2 0 2015-09-23 15:02:31.192
!MESSAGE Could not resolve module: org.eclipse.equinox.security.win32.x86_64 [89]
Unresolved requirement: Require-Capability: eclipse.platform; filter:="(& (osgi.os=win32)
Re: 32 Bit Eclipse RCP Plugin application not working when compiled in 64 bit -Eclipse Mars [message #1710191 is a reply to message #1709686] Mon, 05 October 2015 09:12 Go to previous messageGo to next message
Thirumalmarugan Ramasamy is currently offline Thirumalmarugan RamasamyFriend
Messages: 2
Registered: September 2015
Junior Member
Hi I Have solved my problem by adding two entries of the below libaries in config.ini file:

org.eclipse.core.filesystem.win32.x86_64,\
org.eclipse.core.filesystem.win32.x86,\
org.eclipse.core.resources.win32.x86_64,\
org.eclipse.core.resources.win32.x86,\
org.eclipse.equinox.security.win32.x86_64,\
org.eclipse.equinox.security.win32.x86,\
org.eclipse.swt.win32.win32.x86_64,\
org.eclipse.swt.win32.win32.x86,\

Also added 64 bit required lib in the Exported product. Afte doing this i am able to launch the product both in 32 bit and 64 bit. Can someone help me to do this via eclipse export wizard.?

[Updated on: Mon, 05 October 2015 11:29]

Report message to a moderator

Re: 32 Bit Eclipse RCP Plugin application not working when compiled in 64 bit -Eclipse Mars [message #1710231 is a reply to message #1710191] Mon, 05 October 2015 12:53 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
You might get more response in the RCP or Eclipse Platform forums; find them on the Forum home page under the section Eclipse Projects.
Previous Topic:Eclipse C/C++ for LPC2478
Next Topic:How to launch java desktop application without eclipse
Goto Forum:
  


Current Time: Fri Apr 26 23:30:36 GMT 2024

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

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

Back to the top