Introduction
There are several Java virtual machine (jvm) flavors that are routinely used to develop and run sipX. Those that work with sipX are described here, along with instructions on how to install them.
Managing multiple JVMs on a single system
If you need to have several jvm versions on the same system, the easiest way to use them is by using the alternatives command. Any jvm that is installed using the instructions on this page will be available to be configured via alternatives. Note that when switching from one jvm to another, you will also want to switch the verion of javac you are using, if you are building from source.
alternatives --config java
alternatives --config javac
OpenJDK
sipXecs is now compatible with OpenJDK. Sun is still the most tested JVM on CentOS as of sipXecs 4.4. OpenJDK now ships on CentOS 5.5 so it can replace the need to build sun-java on build server.
Sun Java
The default instructions for setting up a development environment for sipX detail how to install the Sun jvm/jdk using RPMs from the sipX yum repository.
- Go to Setting up a development environment on Fedora if you are on Fedora, CentOS 5 or RedHat EL5, x86 32-bit
- Go to Setting up a development environment for RHEL4 and CentOS4 if you are building for CentOS4 or RedHat EL4, x86 32-bit.
IBM Java
The easiest way to get IBM's jvm/jdk installed is to use IBM's jpackage installer. This consists of a .tar.gz archive containing the necessary RPMs. Installing these RPMs will result in a IBM jvm that is ready to be managed by alternatives.
The first step is to go to the IBM developerWorks Java download page: http://www.ibm.com/developerworks/java/jdk/linux/download.html
Click the link for the appropriate architecture. At this point you will be asked to login with your IBM ID and agree to a license. You will then be directed to the download page. The easiest way to proceed from here is to choose the "Download using HTTP" tab and then select the "Download Now" link in the Jpackage section of the page.
When the download is complete, unpack the archive and install all the RPMs using the rpm command.