为Java构建OpenConnect项目(来自官方gitlab存储库)时出错

问题描述 投票:0回答:1

您好,我需要有关构建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上构建它。 This is the official gitlab repository

Here is the content of config.log generated

谢谢

openconnect
1个回答
0
投票
似乎配置脚本希望您将路径传递到JDK的include目录,而不是JDK本身。

这应该起作用:

--with-java=/Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home/include

© www.soinside.com 2019 - 2024. All rights reserved.