Wednesday, 24 June 2015

Using javah to generate jni header for Android class

1. Open the directory containing the root of android package. For example, if android class is located in, and it's package is, then open the folder containing the /com folder (in my case it is located in android_project/app/src/main/java/).

2. From this folder isssue the command javah

Corresponding .h file should be generated in-place in this folder. You can move it to another folder.

1 comment :

  1. thank you so much! this is the only thing that worked for me!