eclispe中开发JNI程序
- Step 1: Write the Java Code 带有本地接口(native)
- Step 2: Compile the Java Code
- Step 3: Create the .h File javah.exe javah -classpath [wherever you compiled HelloWorld] -o HelloWorld.h example.jni.HelloWorld
- Step 4: Write the Native Method Implementation (用 CDT+MinGW )
- Step 5: Create a Shared Library
- Step 6: Run the Program
0 Comments:
Post a Comment
<< Home