cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to run ./sentantenv.sh on mac os ventura (Terminal has full disk access)

0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

razvan_viorel_badea
Discoverer

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

geffchang
Active Contributor
0 Kudos

It could be a permissions issue.

Try o run this command to give execute access to all .sh files:

chmod 755 *.sh