Symptom
You are trying to setup SAP Commerce 2205 in your local Windows machine, but command setantenv.bat is failing with an error similar to:
C:\path\to\hybris\bin\platform>setantenv.bat
ant home: C:\path\to\hybris\bin\platform\apache-ant
ant opts: -Xmx2g -Dfile.encoding=UTF-8 -Dpolyglot.js.nashorn-compat=true -Dpolyglot.engine.WarnInterpreterOnly=false --add-exports java.xml/com.sun.org.apache.xpath.internal=ALL-UNNAMED --add-exports java.xml/com.sun.org.apache.xpath.internal.objects=ALL-UNNAMED
Unrecognized option: --add-exports
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
While you should expect something like:
C:\path\to\hybris\bin\platform>setantenv.bat
ant home: C:\path\to\hybris\bin\platform\apache-ant
ant opts: -Xmx2g -Dfile.encoding=UTF-8 -Dpolyglot.js.nashorn-compat=true -Dpolyglot.engine.WarnInterpreterOnly=false --add-exports java.xml/com.sun.org.apache.xpath.internal=ALL-UNNAMED --add-exports java.xml/com.sun.org.apache.xpath.internal.objects=ALL-UNNAMED
Apache Ant(TM) version 1.10.11 compiled on July 10 2021
Read more...
Environment
SAP Commerce 2205 onprem on Windows machine
Product
Keywords
KBA , CEC-SCC-PLA-PL , Platform , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview