Fail to start openfire 4.3.0 on MacOS Mojave(Version: 10.14.2)

I had install JDK 8 && openfire 4.3.0

But when I clicked on button ‘Start openfire’ from System Preferences --> openfire

An error message was displayed, and the content was: System Preferences quint unexpectedly while using the Openfire plug-in

Does somebody has solving this issue ??

You have already discovered the related ticket in JIRA, so you know that this is a known bug and nobody on the team knows how to fix this. Until some experienced java developer for macOS provides a fix, you can use older version of Openfire

An interesting thing is, after I launch via command line. It could be launched.

Can you share the command line?

Post a command string plz! I have a same issue on El Capitan 10.11.6

there is a startup script ( in the openfire install folder. you can run this script to manually start OF. you may need to set JAVA_HOME if its not already set.

yes, that is right

I have solved this problem, and the Openfire on my Mac could be running.

Posting some steps here:
$ sudo chmod -R 777 /usr/local/openfire/bin
$ sudo su
sh-3.2# cd /usr/local/openfire/bin
sh-3.2# export JAVA_HOME=`/usr/libexec/java_home` 
sh-3.2# echo $JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
sh-3.2# cd /usr/local/openfire/bin
sh-3.2# ./
Openfire 4.0.2 [Aug 9, 2016 1:51:21 PM]
Admin console listening at http://myMac.local:9090

Running these commands above one by one(setup the java_home variable in openfire.xml)

Grant the write permission to openfire.xml before you launching Openfire.


My BIG thanks, Greg! I got access to console. Now I’ll play with glitchy Registration and Search plugins

Thanks for sharing your finding. I wonder why your console is showing 4.0.2 version though. Is it showing 4.3.0 in Admin Console?

(Aug 9, 2016) I guess that is his old template where to copy/paste strings from :wink:

Oh, i didn’t pay attention to the date :smiley:

These code was found from other place, ignore the version

Yes, I copied them in someplace :smiley:

Great thanks! This saves my time and works on macOS Catalina 10.15.5 (19F101) with Openfire 4.5.2

I have been trying for days to get Openfire running on 10.15.5. Would you mind sharing how you did it? I followed the commands that gregwang posted but I can’t get openfire to start. I would really appreciate the help - thanks!

All I did was

  1. running the installer
  2. cd /usr/local/openfire/bin
  3. run the script, that is, ./

Since I didn’t have a need to have it running as service, didn’t bother to do the other stuffs

One more thing that I just remembered I faced was permission issue. I just changed permission of the folder to 777 (since it is a local test installation so it was not an issue. But don’t do it in production)

Just do the steps as GregWang’s post.

I want to know what was the error?

while the following command I’m receiving bellow issue:
$ export JAVA_HOME=/usr/libexec/java_home

Unable to find any JVMs matching version “(null)”.
No Java runtime present, try --request to install.

Can you please help how can I resolve it. I’m iOS Developer, I need to install openfire for XMPP localhost server.