Using a .jnilib file in released product [message #522821] |
Tue, 23 March 2010 23:08  |
Eclipse User |
|
|
|
Gday,
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=/Library/Java/Extensions
and also
-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.
|
|
|
|
|
|
|
|
|
Re: Using a .jnilib file in released product [message #528666 is a reply to message #522821] |
Wed, 21 April 2010 08:45  |
Eclipse User |
|
|
|
Hi,
I'm having exactly the same problem as you described above. I'm trying to create a mediaplayer applet using JMF and Fobs4JMF. The applet works fine when I run it from eclipse but clearly it doesn't load the needed jnilib when it is exported to a jar file. I've tried everything you mentioned above but no luck.
Any ideas or experience with Fobs4JMF?
Thanks,
Viktor
|
|
|
Powered by
FUDForum. Page generated in 0.06327 seconds