JDK 1.4分为32位和64位两种版本,所需的运行环境为AIX5.1或AIX5.2,AIX 5.1如需运行JDK1.4,必须补丁在ML02以上。这两个版本,都可以在IBM网站上找到,在该网站上需注册一个用户名才能下载。
从该网站上,可以下载到Java14.license.tar.gz和Java14.sdk.tar.gz两个包,可通过gzip解压缩(或Java14.license.tar和Java14.sdk.tar包),将这两个包通过tar展开到某目录下,运行
#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 选择Java14.sdk,不要选license包
ACCEPT new license agreements? 选择yes,回车运行即可安装成功。
安装后用命令检查
#lslpp -l|grep Java
可见
Java14.sdk -------1.4.0.2 COMMITTED Java SDK 32-bit
如果系统中原先已安装有Java,需在用户的.profile或/etc/profile中执行下列操作
export PATH=/usr/java14/bin:/usr/java14/jre/bin:$PATH
指定Java的运行路径,执行之后可用
#java -version命令检查当前的java环境是否为1.4
阅读(12411) | 评论(5) | 转发(0) |