|
|
Re: reference to JNA 4.1.0 in photon [message #1792836 is a reply to message #1792782] |
Tue, 24 July 2018 17:40 |
Jeffrey Cummings Messages: 10 Registered: June 2017 |
Junior Member |
|
|
When I try to launch my application, I get something called a 'FrameworkEvent ERROR' and the following stack trace:
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.epp.mpc.core.win32 [180]
Unresolved requirement: Import-Package: com.sun.jna; version="4.1.0"
at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1661)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
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)
In the file artifacts.xml in the top-level eclipse folder I see the following two entries:
<artifact classifier='osgi.bundle' id='com.sun.jna' version='4.1.0.v20170410-1117'>
<properties size='1'>
<property name='download.size' value='939845'/>
</properties>
</artifact>
and
<artifact classifier='osgi.bundle' id='com.sun.jna.platform' version='4.1.0.v20170410-1117'>
<properties size='1'>
<property name='download.size' value='770003'/>
</properties>
</artifact>
My question is that the two jna files in question seem to be missing and I don't know how to work around this. As I said before, version 4.1.0 of this library is quite old (released in 2014) and I'm using the current 4.5.2 version in my app.
[Updated on: Tue, 24 July 2018 17:41] Report message to a moderator
|
|
|
Re: reference to JNA 4.1.0 in photon [message #1792870 is a reply to message #1792836] |
Wed, 25 July 2018 09:43 |
Ed Merks Messages: 33108 Registered: July 2009 |
Senior Member |
|
|
Looking at the p2 metadata for 'org.eclipse.epp.mpc.core.win32, I see <required namespace='java.package' name='com.sun.jna' range='4.1.0'/>
<required namespace='java.package' name='com.sun.jna.platform.win32' range='4.1.0'/> so it's only specifying a lower bound and should be okay if a newer version if available. But the question is, what bundles (and fragments) are all actually included in your launch? When you say they're missing, are they in your target platform? Did they get included in the launch? Do you actually need/use MPC in your application?
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03368 seconds