How to change JDK version for Oracle Application Server 10g (OAS/OC4J)
OAS 10g by default bundled with earlier version of JDK 1.5. If you want to update it with a later version with latest patched, you can do the following to make the change.
How to change JDK version for Oracle Application Server 10g (OAS/OC4J)
OAS 10g by default bundled with earlier version of JDK 1.5. If you want to update it with a later version with latest patched, you can do the following to make the change.
smallwei 1:32 pm on December 18, 2009
In this example, we’ll assume you want to update the JDK to 1.5.0_21 from 1.5.0_05. There are two approaches:
To update the JDK for the complete Oracle Application Server installation:
1. Shutdown OAS.
2. Install the latest JDK in another directory according to your OS’ requirement.
3. After installation, go to OAS directory, rename $OAS_HOME/jdk to $OAS_HOME/jdk.1.5.0_05_bak
4. Copy the complete newly installed jdk directory to $OAS_HOME, you should now have new jdk version for your OAS.
To update only your existing OC4J container to use a different version of JDK:
1. Shut down your OC4J container. (eg. SOA_OC4J)
2. In opmn.xml, locate the entry for “SOA_OC4J” in the start-parameters section.
3. Add following line that points to your newly installed JDK directory (update the directory according to your env):
<data id="java-bin" value="D:\app\java\jdk1.5.0_21\bin\java"/>4. Start the OC4J container