JAVAlang.IllegalAccessError,而ant在SAP Hybris/Commerce版本2105中构建
发布时间:2022-04-12 23:38:11 480
相关标签: # 移动端
我是Hybris的新手,正在尝试设置Hybris的最新版本,我正在尝试使用ant clean all构建它,并得到以下错误。我正在使用SAP机器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)
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报