on 04-08-2023 6:28 PM
When I try to run setantenv.sh in platform directory, getting bellow error.( Terminal has full disk access)
./setantenv.sh:36: operation not permitted: ant
Can some one help me out?
thanks in advance.
siva@MacBook-Pro platform % . ./setantenv.sh
./setantenv.sh:36: operation not permitted: ant
ant home: /Users/siva/hybris_2205/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
I fixed like belowon a Macbook with macOS Ventura, M1 processor.
Problem:
platform % . ./setantenv.sh
./setantenv.sh:42: operation not permitted: ant
ant home: /path_to_project/core-customize/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
Solution:
xattr -d com.apple.quarantine /path_to_project/core-customize/hybris/bin/platform/apache-ant/bin/ant
xattr -d com.apple.quarantine /path_to_project/core-customize/hybris/bin/platform/hybrisserver.sh
xattr -d com.apple.quarantine /path_to_project/core-customize/hybris/bin/platform/tomcat/bin/catalina.sh
xattr -d com.apple.quarantine /path_to_project/core-customize/hybris/bin/platform/tomcat/bin/wrapper.sh
xattr -d com.apple.quarantine /path_to_project/core-customize/hybris/bin/platform/tomcat/bin/./wrapper-macosx-universal-64
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It could be a permissions issue.
Try o run this command to give execute access to all .sh files:
chmod 755 *.sh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.