步骤:
1. HelloWorld.java
2.HelloWorld.class
3.HelloWorld.h
4.HelloWorld.c
5.libHelloWorld.so
java HelloWorld 即可!!
编译共享库命令如下:
gcc -o libHelloWorld.so -O2 -fPIC -shared HelloWorld.c -I /usr/lib/jvm/java-6-openjdk/include