jni.h: No such file or directory

11 浏览
0 Comments

jni.h: No such file or directory

我一直在跟随这个教程,在第5步时,我从GCC得到以下输出:

    HelloWorld.c:1:17: 错误:jni.h:没有那个文件或目录
    在文件HelloWorld.c中引用了HelloWorld.h:15:错误:在‘void’之前应有‘=’、‘,’、‘;’、‘asm’或‘__attribute__’
    HelloWorld.c:5: 错误:在‘void’之前应有‘=’、‘,’、‘;’、‘asm’或‘__attribute__’

我知道包含目录因系统而异,所以我试图相应地调整命令,但是在我的系统上找不到正确的目录。我正在使用Ubuntu 10.04LTS。

0