Oracle AS comes with a specific version of the JDK. Usually one that was the latest when the product version was packaged (e.g. JDK 1.4.2_06 in Oracle AS 10.1.2). But things proceed over time and newer JDK versions crop up every now and then.
If you want to update your Oracle AS installation with the latest JDK version (e.g. 1.4.2_10 for Oracle AS 10.1.2) you simply can do this in that order:
- shutdown the complete Oracle AS
- go to the installation directory of Oracle AS
- move the old jdk directory to jdk.old
- create a new jdk directory
- install the new version of the JDK in that directory
- restart Oracle AS
Note: Install the complete JDK not only the JRE, Oracle AS needs a Java compiler for compiling JSPs and EJBs
Note: There is also Metalink Note 272808.1 with the official instructions for Oracle AS 9.0.4 and 10.1.2.x.