Error
If you get “The required JDK for this installtion is 1.6.0 and JDK you are running currently with version 1.4.2” this error while installing weblogic you need to point to required java version.
Fix:
step1: verify current java version By defalut OEL5.6 comes with java1.4.2
$java -version
java version “1.4.2”
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-50)
install java1.6
step2:install jdk 1.6.0
step3:Login in with root and execute the following command
root$ln -sf /u01/app/jdk.1.6.0/bin/java /usr/java/bin
step4:verify java version
oracle$java -version
ava version “1.6.0_33”
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)