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.