|Using a .jnilib file in released product [message #522821]
||Wed, 24 March 2010 03:08
| Matt Gray
Registered: July 2009
I've got an eclipse plugin that relies on LuaJava to work. This consists of a .jar file to include with my plugin, and a native library (.jnilib) file to put in the system library location (/Library/Java/Extensions on my Mac).
When I run my plugin as an 'Eclipse Application' from within the eclipse IDE, it finds the library file and all is well. However, when I export the plugin in a release, then run the released application, it can't seem to find the jnilib file.
It seems to be finding the included .jar file fine - it successfully loads those classes, but then when it tries to execute the native code it just bombs out.
Does anyone have any hints for me? Why would the native library not be visible to my released app, but works when launched from the Eclipse IDE?
I've tried adding VM arguments to the released product:
-Djava.library.path=/Users/mattgray/blah and put the .jnilib file there as well.
I've tried putting the .jnilib file all over the place, to try to get the app to load it.
I've gone into the 'Configure Build Path' menu, and clicked on the .jar, then added a 'Native library location' to match where the .jnilib file is.
I believe I've got all 64-bit code, I've used 64 bit flags to compile the library, 64 bit Java 1.6, Mac os 10.6. Eclipse 3.5.0.
Any help appreciated. Let me know if more details are required.
Powered by FUDForum
. Page generated in 0.06921 seconds