|Eclipse 4 and native code [message #1021593]
||Wed, 20 March 2013 07:09
| Dirk Fauth
Registered: July 2012
I am trying to use native code in my Eclipse 4 app. I read several wikis and blogs but I can't get it to work. The issue is that the native code has dependencies to other native code and it isn't resolved by Eclipse.
What I have done so far is to create a project that contains the third-party JAR and the native code DLL's. The fragment approach described by Alex Blewitt here didn't even find the DLL's at all.
So I put everything in one plugin project to test. But I always get
java.lang.UnsatisfiedLinkError: ... Can't find dependent libraries
So I tried to do it as explained in here
I created an OSGi Service that calls System.loadLibrary() as described in the wiki, but on debugging I don't even come across the static init block that contains the loadLibrary() statements.
I read several times that it is an issue having dependent native code libraries, but fairly no solution except the loadLibrary() stuff. But maybe the place where I put those statements is wrong.
Can anybody give me a hint on how to solve this? Where to put the loadLibrary() statements?
Powered by FUDForum
. Page generated in 0.01489 seconds