- Open properties window for android project.
- Select "Builder" menu, click "New" button for creating new builder
- Under "choose configuration type", select 'Program', assume Java JDK classpath is correctly set.
- Name the builder as "JNI-Builder".
- For "Location", select the javah program, my case is "/usr/bin/javah"
- For "Working Directory", select the 'jni' dir for android project, my case is <project>/jni
- For "Arguments", -classpath /path/to/android/project/bin/classes <native class name>
- Apply, OK.
- The header will build & place under the jni folder.
Monday, August 6, 2012
Eclipse JNI Builder to build JNI header for Android
Labels:
Android
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment