I have installed Openfire 3.10.3 on a Mac OS X 10.9.5.
When I start the server from the commandline I get the following error:
Exception in thread “main” java.lang.UnsupportedClassVersionError: org/jivesoftware/openfire/starter/ServerStarter : Unsupported major.minor version 51.0
Looking at various postings it seems to be a problem with the Java version installed and the version of Java used to compile Openfire (I did not build Openfire). I have Java version 8 update 66 installed.
I am not too sure how to proceed - Any suggestions. By the way this ‘problem’ has been raised by somebody else on this forum : Openfire 3.10.2 and OS X Mavericks 10.9.5 5 months ago but this has not been answered.
I have managed to progress and am able to start Openfire from the command-line. However I am still unable to start Openfire from the Openfire Preference Pane.
Here is what I did after a bit more googling:
executed: /usr/libexec/java_home -verbose
which showed me that Java 6 was installed unlike just doing java -version
sudo rm -rf /Library/Java/JavaVirtualMachines/1.6.0*.jdk (wasn’t necessary as such a folder didn’t exist).
Tried starting Openfire again from the command-line but now it complained about JAVA_HOME
so I executed: sudo ln -sf /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents CurrentJDK
which after a reboot resulted in Openfire starting fine from the commandline.
Now I have the following problem when doing the setup:
HTTP ERROR 500
Problem accessing /setup/setup-profile-settings.jsp. Reason:
Server Error
Caused by:
java.lang.NullPointerException at org.jivesoftware.openfire.admin.setup.setup_002dprofile_002dsettings_jsp._jspService(setup_002dprofile_002dsettings_jsp.java:81)