1 person found this helpful
A java update usually is just a replacement of the entire java directory structure. I would advise you not to touch your existing java install, but install a new JDK 1.6 into another directory instead. Then update opatch script and set the JAVA_HOME variable to point to your new JDK 1.6 location. There may be certificates and custom extensions in your JDK 1.5 location you do not want to override and those may be required by other modules.
Another thing you can do is input the -jdk <java path> in OPatch command.
OPatch will look for the jdk in Oracle Home. In case it is corrupt, use the jdk command.