jni_compiling_linking.sh 407 B

1234
  1. g++ helloworld_jni_interface.cpp -I/usr/lib/jvm/java-8-openjdk-amd64/include/ -I/usr/lib/jvm/java-8-openjdk-amd64/include/linux/ -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/jli -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server -ljli -ljvm
  2. #LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/jli:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server ./a.out $1