Tuesday, September 16, 2008

How to configure OC4J 10.1.2 to use JDK/JRE 1.5?

Step 1:
Create Separate OC4J Instance to use JDK 1.5 (OC4J_TEST as shown) on Oracle Application Server 10.1.2 using Enterprise Manager.

Step 2:
Install the JDK 1.5 or above in the Solaris in the different file system (for Example:
/appsrv/10.1.2/jdk1.5), the java executable path needs to be find out (i.e.
/appsrv/10.1.2/jdk1.5/bin/java) . This needs to be added as part of environment variable.

Step 3:
Click on OC4J_TEST container, it will take you to container home page. 

Step 4:
Click on Administration option, where you can find out Server Properties and click on this. It
will take you through next screen.

Step 5:
In the command line options (Please refer to the figure below),
Please type your java executable path obtained from Step 2 (i.e. /appsrv/10.1.2/jdk1.5/bin/java) and leave the OC4J options as it is.

Step 6: 
On the java options, Add additional line as follows 

-Xbootclasspath/p:/appsrv/10.1.2/jdk1.5/lib/tools.jar

Then press the apply button, if there is any syntax error then you will find error otherwise
the OC4J_TEST will be re-started after applying the changes.

No comments:

Post a Comment