开发者

How to create a C header file using Javah?

开发者 https://www.devze.com 2023-01-03 06:49 出处:网络
I am using android 开发者_开发百科ndk, and for that I am trying to create a c header file using the javah tool. How to use and where to use this tool? I am unable to understand.Javah should be in the

I am using android 开发者_开发百科ndk, and for that I am trying to create a c header file using the javah tool. How to use and where to use this tool? I am unable to understand.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号