环境
OS:AIX 5.3.0.0安装JAVA
1.查看当前JAVA版本[db/root]#java -versionjava version "1.4.2"Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20070708 (SR9) (JIT enabled: jitc))2.下载JAVA地址:3.解压缩[db/root]#tar -xvf Java6_64.sdk.6.0.0.375.tar[db/root]#ls -lrt Java6_64.sdk-rwxr-xr-x 1 208 staff 160823296 Aug 22 04:31 Java6_64.sdk4.使用smitty安装JAVA
* INPUT device / directory for software /soft --指定软件目录* SOFTWARE to install Java6_64.sdk --指定安装的软件 ACCEPT new license agreements? yes --选择YES5.检测JAVA版本(仍然是旧版本)[db/root]#java -versionjava version "1.4.2"Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20070708 (SR9) (JIT enabled: jitc))6.更新用户的.profile
cd ~vi .profileJAVA_HOME=/usr/java6_64JDK_HOME=$JAVA_HOMEPATH=$JAVA_HOME/bin:$PATH7.重新登陆,再次检测JAVA版本
[db/root]#java -versionjava version "1.6.0"Java(TM) SE Runtime Environment (build pap6460sr11-20120806_01(SR11))IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460sr11-20120801_118201 (JIT enabled, AOT enabled)J9VM - 20120801_118201JIT - r9_20120608_24176ifx1GC - 20120516_AA)JCL - 20120713_01