Upgrading to Java 1.4 on Oracle 9iAS


Oracle 9i Application Server (Oracle 9iAS) is shipped with Java 2 Platform, Standard Edition (J2SE) version 1.3. This paper (HOWTO) describes step-by-step upgrade of J2SE to 1.4 version on Oracle 9iAS.

This paper covers following steps:

Pre-Instalation Tasks

1. Stop all running services (related to iAS).
2. Rename the actual jdk directory to jdk_old in your iAS home directory (next. $ORACLE_HOME):
mv $ORACLE_HOME/jdk $ORACLE_HOME/jdk_old

Java Download & Install

1. Download the actual (stable) J2SE as self-extracting file (j2sdk-1_4_2_01-linux-i586.bin) from http://java.sun.com/j2se/1.4.2/download.html.
2. Make the j2sdk-1_4_2_01-linux-i586.bin executable and execute it. Scroll down the license agreement and type "yes". Move the extracted directory named as jdk to the $ORACLE_HOME.
chmod +x j2sdk-1_4_2_01-linux-i586.bin
./j2sdk-1_4_2_01-linux-i586.bin
mv j2sdk1_4_2_01 $ORACLE_HOME/jdk

3. Copy all files from the $ORACLE_HOME/jdk_old/jre/lib/ext to $IAS_HOME/jdk/jre/lib/ext
cp $ORACLE_HOME/jdk_old/jre/lib/ext/* $ORACLE_HOME/jdk/jre/lib/ext

Post-Instalation Tasks

1. Edit the $ORACLE_HOME/jdk/jre/lib/security/java.security and change the following line from

login.configuration.provider=com.sun.security.auth.login.ConfigFile
to
login.configuration.provider=oracle.security.jazn.spi.LoginConfigProvider

2. Edit the $ORACLE_HOME/jdk/jre/lib/security/java.security and add the following line:

definitionsauth.policy.provider=oracle.security.jazn.spi.PolicyProvider

3. Edit the $ORACLE_HOME/jdk/jre/lib/i386/jvm.cfg and add change the following line from

-native ERROR
to
-native ALIASED_TO -server

4. Start the iAS processes.

Now the installation is complete. Your iAS now supports the Java 1.4 features in your applications.