Java / Shell issue

Hi,

I’m having an issue starting Openfire. Something has happened (possibility a software update).

When I’m starting Openfire server

/usr/local/openfire/bin/openfire.sh

I’m getting

bash-3.2# sudo /usr/local/openfire/bin/openfire.sh

Error: JAVA_HOME is not defined correctly.

We cannot execute /System/Library/Frameworks/JavaVM.framework/Home/bin/java

However, when running

zsh --emulate sh

It’s starting correctly

/usr/local/openfire/bin/openfire.sh

Openfire 4.6.4 [Dec 12, 2022, 5:38:20 PM]

Admin console listening at http://192.168.62.230:9090

Successfully loaded plugin ‘admin’.

I have tried to resolve the JAVA_HOME error here but doesn’t seem to have solved the issue.

Been struggling for a while and I’m pretty sure it’s not a hard one but cannot but my finder on it.

Tks in advance ;o)

This was sorted by typing in terminal.

zsh /usr/local/openfire/bin/openfire.sh