Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Java JNI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Java JNI



Hi,

perhaps anybody here now the answer. I didn't found anything with Google.

I'd like to use native C-code called via Java JNI interface. On other platforms (Linux, HP-UX, Solaris etc.) all went well.
You see it's an porting issue.

All I want to do is to compile an JNI stub (shared library) load in Java via
System.loadLibrary(libraryStubName);

I tried it on Leopard with 32- and 64-Bit. I don't like to use Xcode. I need the core gcc compiler options.
The options I already tried are
gcc -dynamiclib -undefined dynamic_lockup -o libstub.so stub.c

The stub was not loaded or found by java although DYLD_LIBRARY_PATH is set. Is there an other logic where
java found it's JNI stubs?

Thanks in advanced for helping,
 Thorsten

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.