Jump to content

Talk:Java Native Interface

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 72.78.117.10 (talk) at 20:09, 1 July 2006 (Fixed formatting). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In a similar example, the MacOS X command line for creating the shared library was this:

gcc -o libNativeSideBridge.jnilib -dynamiclib -I/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Headers/ getpriority.c NativeSideBridge.c

where the loadLibrary call was System.loadLibrary("NativeSideBridge"), getpriority.c was native C, and NativeSideBridge.c implemented JavaSide.h (generated by javah).