开发者

How to create a C header file using Javah?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜