aix上安装jdk1.5

在ibm网站上下jdk1.5的版本解压到安装目录,接下来安装:
Smit  installp
Install software
选择文件集所在的目录,回车进入
INPUT device / directory for software ------------/test 安装介质所在目录
* SOFTWARE to install ----------------------------[_all_latest] 安装介质
PREVIEW only? (install operation will NOT occur) ---no
COMMIT software updates? -------------------------- yes
SAVE replaced files? ------------------------------ no
AUTOMATICALLY install requisite software? ----------yes
EXTEND file systems if space needed? ---------------yes
OVERWRITE same or newer versions? ------------------no
VERIFY install and check file sizes? -------------- no
Include corresponding LANGUAGE filesets? ---------- yes
DETAILED output? -----------------------------------no
Process multiple volumes? --------------------------yes
ACCEPT new license agreements? ---------------------no
Preview new LICENSE agreements? --------------------no
在上述菜单中,
SOFTWARE to install 选择Java15.sdk,不要选license包
ACCEPT new license agreements? 选择yes,回车运行即可安装成功。
安装后用命令检查
#lslpp -l|grep Java
可见
Java15.sdk -------1.5.0.2 COMMITTED Java SDK 32-bit
如果系统中原先已安装有Java,需在用户的.profile或/etc/profile中执行下列操作
export PATH=/usr/java15/bin:/usr/java15/jre/bin:$PATH
指定Java的运行路径,执行之后可用
#java -version命令检查当前的java环境是否为1.5

你可能感兴趣的:(java,IBM,AIX)