Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Native Libraries for Mac: dylib instead of jnilib
Native Libraries for Mac: dylib instead of jnilib [message #124607] Thu, 15 January 2009 17:20
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
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
Previous Topic:URGENT: configure Jetty to load index.html when http://localhost is given
Next Topic:Config IU - Unsatisfied dependency.
Goto Forum:
  


Current Time: Tue Mar 19 07:25:13 GMT 2024

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

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

Back to the top