These are the instructions for building and installing Openfire from svn. These builds should replace the builds we currently download and install from igniterealtime.org. It is important that Openfire is built with Java 1.5, not Java 1.6. For reference, see a list of current changes from upstream Openfire.
- Download and install JDK 5.0 Update 16 from http://java.sun.com/javase/downloads/index_jdk5.jsp
- Download and install the latest binary version of ant from http://ant.apache.org/bindownload.cgi
- Check out the latest source code using
svn co https://svn.mozilla.org/projects/livechat/trunk livechat
- Enter the openfire/build folder and type
- Enter the webchat/build folder and type
- The previous two commands will build Openfire and the Webchat plugin
After the build has finished, it needs to be installed
- Make a backup of the (staging or production) database, in case the upgrade fails
- Make a copy of the Openfire configuration file. The location is /opt/openfire/conf/openfire.xml. This needs to be restored into the new installation.
- Make sure all previous Openfire installations are gone from /opt. If installed from RPM, uninstall via RPM. /opt/openfire should not exist.
- In the openfire tree, copy the just created openfire/target/openfire folder to /opt :
sudo cp -av openfire/target/openfire /opt/openfire
- Restore the openfire.xml file you backed up earlier. Start the server.
To run Openfire, this command should be executed when the server boots:
To avoid bug 458797 and bug 464779, Openfire must always be built and ran with Java 1.5.