A static native interface for Java, built around JNI
Java Shell Roff Makefile HTML CSS C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.jcheck
make
src/share
test
.hgignore
ASSEMBLY_EXCEPTION
LICENSE
README
README.md
THIRD_PARTY_README
staticjni_test.sh
tutorial.md

README.md

README specific to StaticJNI

Configure and compile modified javah

To specify the jvm to use, uncomment and change the line "# boot.java.home = ..." to indicate the root of the jvm, for example: "boot.java.home = /usr/lib/jvm/java-7-openjdk-amd64/". You may need to update the makefiles of the tests in test/tools/staticjni/*/Makefile.

To compile tools and tests, then run tests, call: ./staticjni_test.sh

Code relevant to staticjni

All StaticJNI code is in src/share/com/sun/tools/javah/ and the annotations are in src/share/net/xymus/staticjni/.

Test and examples

To see code using StaticJNI, consult the tests located in test/tools/staticjni/. The main code of all tests are in the .java files and the according .c file.