0

我是 Hybris 的新手,正在尝试设置 Hybris 最新版本,我正在尝试使用 ant clean all 构建它并收到以下错误。我正在使用 SAP Machine JDK 17 并在环境变量中设置它的路径。请帮助如何解决这个问题!

** Java version **
C:\CXCOMM210500P_5-70005661\hybris\bin\platform>java -version
Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="Sun Microsystems Inc."
openjdk version "17.0.1" 2021-10-19 LTS
OpenJDK Runtime Environment SapMachine (build 17.0.1+12-LTS)
OpenJDK 64-Bit Server VM SapMachine (build 17.0.1+12-LTS, mixed mode, sharing)

** Error logs **

C:\CXCOMM210500P_5-70005661\hybris\bin\platform\resources\ant\mavenTasks.xml:201: java.lang.IllegalAccessError: class com.oopsconsultancy.xmltask.jdk15.XPathAnalyser15 (in unnamed module @0x2f9f7dcf) cannot access class com.sun.org.apache.xpath.internal.XPathAPI (in module java.xml) because module java.xml does not export com.sun.org.apache.xpath.internal to unnamed module @0x2f9f7dcf
        at com.oopsconsultancy.xmltask.jdk15.XPathAnalyser15.analyse(XPathAnalyser15.java:28)
        at com.oopsconsultancy.xmltask.XmlReplace.apply(XmlReplace.java:72)
        at com.oopsconsultancy.xmltask.XmlReplacement.apply(XmlReplacement.java:61)
        at com.oopsconsultancy.xmltask.ant.XmlTask.processDoc(XmlTask.java:692)
        at com.oopsconsultancy.xmltask.ant.XmlTask.execute(XmlTask.java:661)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     
4

1 回答 1

0

您需要使用 SAP Machine 11.0 作为版本 2105 的 JDK。按版本的完整系统要求在这里

于 2022-02-04T12:33:20.370 回答