Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
JNISample
Last Revision: | Version 1.0, 2003-01-14 Please see MyFirstJNIProject Sample Code instead. |
Build Requirements: | Mac OS X, Project Builder |
Runtime Requirements: | Mac OS X, Project Builder |
This project is deprecated. Please see MyFirstJNIProject Sample Code instead. A demonstration of a Java application built in ProjectBuilder that calls native code through JNI and calling a dylib from a JNI library. Changes since 2.0 Set install location for dylib. Changes since 1.2 Remove the GUI to make the example simpler Added Makefile to show how to build from the command line. Show how to call into a dylib from a JNI library. Changes since 1.1 Use the BUNDLE flag in the LIBRARY_STYLE build settings. Changes since 1.0 The doJavah Shell script that's run javah to create the jni header file (JNIOut.h) for JNIOut.c. This shell script is run in the "Shell Script Build Phase" of the JNIout Target. The "Copy Files Build Phase" of the JNISample target which copies the libJNIOut.jnilib into the JNISample.app bundle.
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14