Title
Changing the JDK version on OC4J

Date
2008-02-05

Summary
These instructions describe how to update your existing OC4J container to use a different version of JDK. The JDK version will apply only to the container being configured, and not the entire Oracle Application Server.

In this example, the container name is MY_OC4J and the new JDK version is JDK 1.5.0_14.

Details
1. Download JDK 5 (jdk-1_5_0_14-linux-i586.bin) from the Sun website at http://java.sun.com/javase/downloads/index_jdk5.jsp and copy it to your $ORACLE_HOME directory.

2. Extract the JDK software to your $ORACLE_HOME directory:
cd $ORACLE_HOME
chmod 700 jdk-1_5_0_14-linux-i586.bin
./jdk-1_5_0_14-linux-i586.bin
rm jdk-1_5_0_14-linux-i586.bin

3. Open the opmn.xml file:
cd $ORACLE_HOME/opmn/conf
vi opmn.xml

4. In opmn.xml, locate the entry for MY_OC4J and in the start-parameters section, and add a line similar to the following (use your current path):
<data id="java-bin" value="/u01/app/oracle/product/10.1.3/soa_1/jdk1.5.0_14/bin/java"/>

5. Save and close the file, and restart the container:
opmnctl restartproc process-type=MY_OC4J

Applicable Versions
Oracle Application Server 10g
Ahmed Aboulnaga

.com .com