Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:32 Go to next message
Jeffrey Cummings is currently offline Jeffrey CummingsFriend
Messages: 8
Registered: June 2017
Junior Member
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] Tue, 24 July 2018 00:22 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3223
Registered: July 2009
Senior Member

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?


Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Tue, 24 July 2018 00:23]

Report message to a moderator

Re: reference to JNA 4.1.0 in photon [message #1792836 is a reply to message #1792782] Tue, 24 July 2018 17:40 Go to previous messageGo to next message
Jeffrey Cummings is currently offline Jeffrey CummingsFriend
Messages: 8
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29482
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?
Previous Topic:Eclipse console not producing correct output
Next Topic:Error in Eclipse IDE
Goto Forum:
  


Current Time: Sat Aug 18 02:35:53 GMT 2018

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

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

Back to the top