Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.409 kb
pushd src
echo "JAVAC"
javac JNIExample.java
echo "JAVAH"
javah JNIExample
mv JNIExample.class ../lib/
popd
#has to be a jnilib, is this documented somewhere!?
echo "GCC"
gcc -o ./lib/libJNIExample.jnilib -dynamic -shared -I/System/Library/Frameworks/JavaVM.framework/Headers ./src/JNIExample.cc -lc
echo "NODE-WAF"
node-waf clean configure build || node-waf configure build
cp -f build/default/*.node ./lib
Jump to Line
Something went wrong with that request. Please try again.