java-1.7.0-openjdk-1.7.0.79-2.5.5.4.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.35-1.13.7.1.el6_6.x86_64
java-1.7.0-openjdk-devel-1.7.0.79-2.5.5.4.el6.x86_64
java-1.6.0-openjdk-1.6.0.35-1.13.7.1.el6_6.x86_64
[root@esyxjkdb1bin]# rpm -e java-1.7.0-openjdk-devel-1.7.0.79-2.5.5.4.el6.x86_64
[root@esyxjkdb1bin]# rpm -e java-1.7.0-openjdk-1.7.0.79-2.5.5.4.el6.x86_64
[root@esyxjkdb1bin]# rpm --nodeps -e java-1.6.0-openjdk-1.6.0.35-1.13.7.1.el6_6.x86_64
1、jrockit-jdk1.6.0_45-linux-x64.bin下载到/weblogic/java,赋予可执行权限:chmod +x jrockit-jdk1.6.0_45-linux-x64.bin
2、执行:./jrockit-jdk1.6.0_45-linux-x64.bin 安装
3、配置环境变量:在/etc/profile中加入:
exportPATH=/weblogic/java/bin:$PATH
exportJAVA_HOME=/weblogic/java
exportCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
4、运行:source /etc/profile
使配置文件生效
5、运行:java-version,显示jdk版本,jdk安装成功
[root@yxfkappweb2java]# java -version
java version"1.6.0_45"
Java(TM) SE RuntimeEnvironment (build 1.6.0_45-b06)
Oracle JRockit(R)(build R28.2.7-7-155314-1.6.0_45-20130329-0641-linux-x86_64, compiled mode)