Eclipse RCP build - Unresolved requirement: com.sun.jna - eclipse-rcp

I just installed Eclipse 2022-06 (4.24.0) and built and export default RCP application product.
When I try to run this product in windows I get error in log file listed below. (in Eclipse IDE environment it runs perfectly).
It looks like library com.sun.jna is missing... But it included in required plug-ins.
It exists in config.ini and plugins folder of built product as well...
I spent two days trying to solve this issue and ran out of ides already...
!SESSION 2022-08-16 14:25:08.798 -----------------------------------------------
eclipse.buildId=unknown
java.version=18.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -clearPersistedState
Command-line arguments: -os win32 -ws win32 -arch x86_64 -clearPersistedState
!ENTRY org.eclipse.e4.ui.workbench.addons.swt 4 0 2022-08-16 14:25:09.361
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.e4.ui.workbench.addons.swt [42]
Unresolved requirement: Import-Package: org.eclipse.e4.ui.internal.workbench.swt
-> Export-Package: org.eclipse.e4.ui.internal.workbench.swt; bundle-symbolic-name="org.eclipse.e4.ui.workbench.swt"; bundle-version="0.16.500.v20220506-1520"; version="0.0.0"; x-friends:="org.eclipse.e4.ui.workbench.addons.swt,org.eclipse.e4.ui.workbench.renderers.swt,org.eclipse.ui.workbench"
org.eclipse.e4.ui.workbench.swt [44]
Unresolved requirement: Require-Bundle: org.eclipse.urischeme; bundle-version="1.1.0"
-> Bundle-SymbolicName: org.eclipse.urischeme; bundle-version="1.2.100.v20211001-1648"; singleton:="true"
org.eclipse.urischeme [64]
Unresolved requirement: Require-Bundle: com.sun.jna; bundle-version="[5.8.0,6.0.0)"
Unresolved requirement: Require-Bundle: org.eclipse.e4.ui.workbench.renderers.swt; bundle-version="0.9.1"
-> Bundle-SymbolicName: org.eclipse.e4.ui.workbench.renderers.swt; bundle-version="0.15.500.v20220511-1638"; singleton:="true"
org.eclipse.e4.ui.workbench.renderers.swt [43]
Unresolved requirement: Require-Bundle: org.eclipse.e4.ui.workbench.swt; bundle-version="0.9.0"
-> Bundle-SymbolicName: org.eclipse.e4.ui.workbench.swt; bundle-version="0.16.500.v20220506-1520"; singleton:="true"
at org.eclipse.osgi.container.Module.start(Module.java:463)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1847)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1840)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1781)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1745)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1667)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)

As greg-449 suggests problem was with version of com.sun.jna...
Version 4.5.1 was included by default instead of 5.8.0.
So, to solve this, I added version requirements for com.sun.jna in *.product file "Contents" tab.

Related

zk pages not correctly visualized in eclipse

Good morning, everyone,
my colleague uses the same Eclipse that I do, the 2019-12 with Java 1.8 and we both have ZKStudios installed as plugins. I see everything correctly zuls with all the tags, while she sees a text page. It completely lacks the option to see the zuls.
She has reinstalled ZkStudios several times but to no avail.
I attach screens of what I see and what my colleague sees.
Has anyone ever had a similar problem?
My zk pages correct
My project config
my coworker zul page, not correct
my coworker config
We tried to reinstall the plugin
New info, thanks to comments, My coworker has this error when she tries to install zk studios :
org.osgi.framework.BundleException: Could not resolve module: org.zkoss.eclipse.editor [731]
Unresolved requirement: Require-Bundle: org.eclipse.wst.common.snippets
-> Bundle-SymbolicName: org.eclipse.wst.common.snippets; bundle-version="1.2.500.v201811170421"; singleton:="true"
org.eclipse.wst.common.snippets [428]
Unresolved requirement: Require-Bundle: org.eclipse.gef; bundle-version="[3.10.0,6.0.0)"
-> Bundle-SymbolicName: org.eclipse.gef; bundle-version="3.13.0.202211301913"; singleton:="true"
org.eclipse.gef [498]
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
Unresolved requirement: Require-Bundle: org.eclipse.draw2d; bundle-version="[3.7.0,4.0.0)"; visibility:="reexport"
-> Bundle-SymbolicName: org.eclipse.draw2d; bundle-version="3.12.0.202211301913"
org.eclipse.draw2d [490]
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
Unresolved requirement: Require-Bundle: org.zkoss.eclipse.zks
-> Bundle-SymbolicName: org.zkoss.eclipse.zks; bundle-version="2.0.5.v202202111348"; singleton:="true"
org.zkoss.eclipse.zks [735]
Unresolved requirement: Require-Bundle: org.eclipse.gef
-> Bundle-SymbolicName: org.eclipse.gef; bundle-version="3.13.0.202211301913"; singleton:="true"
Unresolved requirement: Require-Bundle: org.eclipse.gef
-> Bundle-SymbolicName: org.eclipse.gef; bundle-version="3.13.0.202211301913"; singleton:="true"
According to your screenshot, you don't open a zul file with a zul editor: (check the icon)
The zul editor icon is:
You can open a zul with zul editor:
Check file type and editor association:

bundle exception in eclipse upgrade 4.5.2 to 4.10

I upgraded my eclipse RCP based application from 4.5.2 to 4.10. I setup target platform and pointed it to new eclipse plugin directory as well.
And when I try to launch the application, it shows below errors.
Can somebody suggest any check list which I should follow for eclipse based applications upgrade and what am I missing here?
!ENTRY org.eclipse.core.runtime 4 0 2019-05-30 06:33:32.513
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.core.runtime [3]
Unresolved requirement: Require-Bundle: javax.inject; bundle-version="1.0.0"; visibility:="reexport"; resolution:="optional"
Unresolved requirement: Require-Bundle: org.eclipse.core.jobs; bundle-version="[3.10.0,4.0.0)"; visibility:="reexport"
at org.eclipse.osgi.container.Module.start(Module.java:451)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1783)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1763)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1725)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1656)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:233)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:343)
!ENTRY org.eclipse.core.runtime 2 0 2019-05-30 06:33:32.513
!MESSAGE Could not resolve module: org.eclipse.core.runtime [3]
Unresolved requirement: Require-Bundle: javax.inject; bundle-version="1.0.0"; visibility:="reexport"; resolution:="optional"
Unresolved requirement: Require-Bundle: org.eclipse.core.jobs; bundle-version="[3.10.0,4.0.0)"; visibility:="reexport"
!ENTRY org.eclipse.osgi 4 0 2019-05-30 06:33:32.529
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:81)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
Your log suggests problems with the javax.inject and org.eclipse.core.jobs plug-ins.
In the 'Run > Run Configurations...' dialog find your RCP in the 'Eclipse Application' section.
Use the 'Add Required Plug-ins' button to add all plug-ins your RCP uses. This will change between releases.
Use the 'Validate Plug-ins' button to validate that the selected plug-ins set is reasonable.

Eclipse RCP new plug-in dependency unresolved requirement

I am learning RCP plug-ins and trying to add another plug-in as a dependency. So I started with a simple HelloWorld application and tested and it works fine. Now I created another plug-in by importing external jar files and added that as dependent on my HelloWorld application. Now when I run the code I get the following error,
!ENTRY org.eclipse.equinox.app 0 0 2018-10-08 13:39:55.300
!MESSAGE Product com.be.tests.part1.product1 could not be found.
!ENTRY com.be.tests.part1 4 0 2018-10-08 13:39:55.315
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: com.be.tests.part1 [73]
Unresolved requirement: Require-Bundle: Part1Libs; bundle-version="1.0.0"
I have added the new plug-in (Part1Libs) in the dependencies tab. The
MANIFEST.MF file shows the dependency as
Require-Bundle: org.eclipse.ui.intro,
org.eclipse.core.runtime,
org.eclipse.ui,
org.eclipse.equinox.ds,
org.eclipse.equinox.util,
org.eclipse.equinox.event,
Part1Libs;bundle-version="1.0.0"
It looks like I am missing a simple step but I can't figure out what is going on. Any help is greatly appreciated,
Look in the 'Run > Run Configurations...' dialog and find your RCP.
On the 'Plug-ins' tab ensure that all the plugins in your RCP are listed.

BIRT RCP report designer 4.6.0 problems: could not resolve module: org.eclipse.birt.chart.examples

I have installed BIRT RCP designer 4.6.0 on a server machine 64 with:
w12r2, java 1.7, eclipse Kepler 1.
when i start birt.exe i obtained a crash with this log:
!SESSION 2017-06-22 11:39:45.295 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_80
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Command-line arguments: -os win32 -ws win32 -arch x86_64
!ENTRY org.eclipse.birt.chart.examples 4 0 2017-06-22 11:39:46.576
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.birt.chart.examples [51]
Unresolved requirement: Require-Bundle: org.eclipse.ui.ide; bundle-version="[3.2.0,4.0.0)"; resolution:="optional"
Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench.texteditor; bundle-version="[3.2.0,4.0.0)"
-> Bundle-SymbolicName: org.eclipse.ui.workbench.texteditor; bundle-version="3.10.0.v20160530-2011"; singleton:="true"
org.eclipse.ui.workbench.texteditor [269]
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"
Unresolved requirement: Require-Bundle: org.eclipse.jface.text; bundle-version="[3.8.0,4.0.0)"
-> Bundle-SymbolicName: org.eclipse.jface.text; bundle-version="3.11.0.v20160505-1301"
org.eclipse.jface.text [255]
Unresolved requirement: Require-Bundle: org.eclipse.jface; bundle-version="[3.5.0,4.0.0)"
-> Bundle-SymbolicName: org.eclipse.jface; bundle-
......
and so on for all modules. Is it a problem due java 1.7?
Thanks.
The line
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"
is saying that Java 8 is required for the plugin.
There might also be other plugin version dependencies errors but you haven't included enough of the log to know for sure.
Note that the Birt download page says that Eclipse Neon (4.6) is required.

Eclipse OSGi Bundle Console Exception

I am using Eclipse Juno to run the OSGi. But while running i am not able to see the console and getting the below error:
I'm trying to run my bundle as OSGI framework but i got the following output and i don't know where is the mistake:
!SESSION 2015-08-05 17:54:16.831 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -console -configuration runtime
!ENTRY org.eclipse.osgi 4 0 2015-08-05 17:54:17.182
!MESSAGE Could not find bundle: unknown
!STACK 0
org.osgi.framework.BundleException: Could not find bundle: unknown
at org.eclipse.core.runtime.internal.adaptor.ConsoleManager.checkForConsoleBundle(ConsoleManager.java:58)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:331)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:231)
at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:208)
!ENTRY org.eclipse.osgi 4 0 2015-08-05 17:54:17.198
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:78)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:208)
Please help.
You need expose your services in the MANIFEST.MF, this file is located into META-INF directory, you can use this plugin of maven for do this work automatically:
http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html