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)

Posted on Dec 11, 2022 11:52 PM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Java / Shell issue

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.