我在尝试在 UBUNTU 18.04 上安装 EJBCA 时收到此“BUILD FAILED”。以下消息出现在“BUILD FAILED”下方:
/opt/ejbca_ce_6_15_2_1/build.xml:1323: The following error occurred while executing this line:
/opt/ejbca_ce_6_15_2_1/modules/build.xml:260: The following error occurred while executing this line:
/opt/ejbca_ce_6_15_2_1/modules/cesecore-p11/build.xml:16: Compile failed; see the compiler error output for details.
在 Build Failed 消息上方,共有 39 个“javac”错误,指明了问题所在。其中一些是:
jar:
[mkdir] Created dir: /opt/ejbca_ce_6_15_2_1/modules/cesecore-p11/build
[javac] Compiling 1 source file to /opt/ejbca_ce_6_15_2_1/modules/cesecore-p11/build
[javac] /opt/ejbca_ce_6_15_2_1/modules/cesecore-p11/src/sun/security/pkcs11/CESeCoreUtils.java:15: error: package sun.security.pkcs11.wrapper is not visible
[javac] import static sun.security.pkcs11.wrapper.PKCS11Constants.CKA_SENSITIVE;
[javac] ^
[javac] (package sun.security.pkcs11.wrapper is declared in module jdk.crypto.cryptoki, which is not in the module graph)
其他是这样的:
137: error: cannot find symbol
[javac] if ( e.getErrorCode()==CKR_ATTRIBUTE_READ_ONLY ) {
[javac] ^
[javac] symbol: variable CKR_ATTRIBUTE_READ_ONLY
[javac] location: class CESeCoreUtils
此链接中的完整错误列表https://pastebin.com/LMzDhdKn