如何使用javah工具来创建C头文件 [英] How to Create C header file using Javah tool
问题描述
大家好,我使用的Android NDK和我试图使用javah工具如何使用它来创建C头文件,并在使用这个工具,我无法理解,所以请任何一个可以 告诉我的程序怎么做,我等待您的答复,请.........
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.........
推荐答案
JAVAH应该在你的JDK的bin文件夹
Javah should be in the bin folder of your JDK
事情是这样的:
C:\ Program Files文件\的Java \ jdk1.6.0_19 \斌
C:\Program Files\Java\jdk1.6.0_19\bin
有关的纯朴的缘故采取从bin目录的路径名的文件夹在你的Android项目,并将其放置在上面的目录中。
For simplicities sake take the path name folder from the bin directory in your Android project and place it in the above directory.
然后使用命令提示符
javah的-jni com.pathname.ClassName
javah -jni com.pathname.ClassName
和头文件将在JDK bin文件夹中创建
And the header file will be created in the JDK bin folder
这篇关于如何使用javah工具来创建C头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!