Skip to main content



      Home
Home » Newcomers » Newcomers » reference to JNA 4.1.0 in photon(reference to JNA 4.1.0 in photon)
reference to JNA 4.1.0 in photon [message #1792777] Mon, 23 July 2018 15:32 Go to next message
Eclipse UserFriend
I'm using the RCP distribution of photon and have discovered that somewhere in the plugins references to JNA version 4.1.0 are hard coded. This is a very old version of that library (wrappers for JNI) since the current version is 4.5.2. How do I eliminate the references to version 4.1.0?
Re: reference to JNA 4.1.0 in photon [message #1792782 is a reply to message #1792777] Mon, 23 July 2018 20:22 Go to previous messageGo to next message
Eclipse UserFriend
It might help to be a little less vague as to where this reference is. Are you
meaning to report it as a bug or to submit a fix?

[Updated on: Mon, 23 July 2018 20:23] by Moderator

Re: reference to JNA 4.1.0 in photon [message #1792836 is a reply to message #1792782] Tue, 24 July 2018 13:40 Go to previous messageGo to next message
Eclipse UserFriend
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 13:41] by Moderator

Re: reference to JNA 4.1.0 in photon [message #1792870 is a reply to message #1792836] Wed, 25 July 2018 05:43 Go to previous message
Eclipse UserFriend
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?
Previous Topic:Eclipse console not producing correct output
Next Topic:Error in Eclipse IDE
Goto Forum:
  


Current Time: Mon Jul 14 12:59:33 EDT 2025

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

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

Back to the top