问题
Hi guys i am using android ndk and for that i am trying to create a c header file using javah tool how to use and where to use this tool i am unable to understand so please any one can tell me the procedure how to do that i am waiting for the reply please.........
回答1:
Javah should be in the bin folder of your JDK
Something like this:
C:\Program Files\Java\jdk1.6.0_19\bin
For simplicities sake take the path name folder from the bin directory in your Android project and place it in the above directory.
Then use the command prompt
javah -jni com.pathname.ClassName
And the header file will be created in the JDK bin folder
来源:https://stackoverflow.com/questions/3020927/how-to-create-c-header-file-using-javah-tool