当前位置: 代码迷 >> Java相关 >> 请问".h"是什么文件格式?
  详细解决方案

请问".h"是什么文件格式?

热度:442   发布时间:2006-05-05 22:26:00.0
请问".h"是什么文件格式?
请问各位高手:

".h"是什么文件格式?
  1. public class testdll
  2. {
  3. static
  4. {
  5. System.loadLibrary("goodluck");
  6. }
  7. public native static int get();
  8. public native static void set(int i);
  9. public static void main(String[] args)
  10. {
  11. testdll test = new testdll();
  12. test.set(10);
  13. System.out.println(test.get());
  14. }
  15. }

用javac testdll.java编译它,会生成testdll.class。
再用javah testdll(这里是什么意思?),则会在当前目录下生成testdll.h文件。
搜索更多相关的解决方案: 格式  文件  

----------------解决方案--------------------------------------------------------
.h有吗?好象是C++里的吧 JAVA里没.h的文件
----------------解决方案--------------------------------------------------------

在命令行中输入 javah 回车 看看这个命令的帮助信息


----------------解决方案--------------------------------------------------------
.h是C/C++当中的头文件
查相于我们的接口文件,里面定义了一些方法却没有具体的实现
----------------解决方案--------------------------------------------------------
  相关解决方案