Native Libraries for Mac: dylib instead of jnilib [message #124607] |
Thu, 15 January 2009 17:20 |
Hauke Fuhrmann Messages: 333 Registered: July 2009 |
Senior Member |
|
|
Hi there,
First: Is there some dedicated Mac users Newsgroup, Forum or Mailinglist
for Eclipse issues?
I try to add native code for the Mac platform. It was perfectly no
problem for windows and Linux, but for Mac it fails:
I have some libFoo.dylib shared Mac library and specified it in the
Manifest of some Fragment:
Bundle-NativeCode: /lib/libFoo.dylib; osname=macosx; processor=x86
Then in the Java code I statically load the library:
static { System.loadLibrary("Foo"); }
Unfortunately it seems that Java+Eclipse expects the library to have the
filename Extension .jnilib instead of .dylib and hence it looks for the
filename "libFoo.libjni" and my lib is not found.
However, I cannot simply rename or rebuild the lib, because of hardcoded
library dependencies to this exact filename.
How can I get Java+Eclipse to load my .dylib?
I'm using
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
in Eclipse 3.4
Hope for help,
Hauke
|
|
|
Powered by
FUDForum. Page generated in 0.03628 seconds