0

您好,我需要有关为 Java 构建人工制品的帮助。运行此命令进行构建时出现错误:

./configure --with-vpnc-script=~/Downloads/vpnc-script --with-java=/Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home --disable-nls.

这是我得到的错误:

checking jni.h usability... no configure: error: unable to compile JNI test program

我需要你的帮助。我正在使用发行版 8.08 并在 mac 上构建它。这是官方的 gitlab 存储库

这是生成的config.log的内容

谢谢

4

1 回答 1

1

似乎配置脚本希望您将路径传递到 JDK 的include目录,而不是 JDK 本身。

这应该有效:

--with-java=/Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home/include
于 2020-04-17T07:10:56.690 回答