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.