Java / Shell issue


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

When I’m starting Openfire server


I’m getting

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

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


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

Admin console listening at

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/