java.util.NoSuchElementException error on macos standalone installtion

Downloaded the Wildfly distribution and tried to execute standalone.sh but I’m getting the following error:

This is what I have in my .zshrc

export PATH="/usr/libexec/java_home:$PATH"
eval “$(jenv init -)”
export JAVA_HOME="/usr/libexec/java_home"