How to Create C header file using Javah tool

我是研究僧i 提交于 2019-12-22 07:09:51

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!