首页 > 代码库 > HP-UNIX JDK1.6的详细安装说明
HP-UNIX JDK1.6的详细安装说明
此次安装以设备SHIPSV13(IP地址为:x.x.x.x)为例,详细安装过程如下:
一、确认系统版本
bash-4.2# uname -a
HP-UX SHIPSV13 B.11.23 U ia64 1660023518 unlimited-user license
二、下载相应系统版本的jdk
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXJAVAHOME
此案例安装jdk1.6,建议下载HP Itanium版本。
三、安装JDK1.6
1)将下载好的jdk文件放置于/home/test/upload目录
bash-4.2# cd /home/test/upload/
bash-4.2# ls
Itanium_JDK_6.0.20_-_Jul_2013_z7550-01136_jdk6_16020_ia.depot
2)将LANG调整为c。(注:如果不调整,执行下一条命令时将报错.)
bash-4.2# export LANG=C
3)赋予jdk文件可执行权限。
chmod a+x Itanium_JDK_6.0.20_-_Jul_2013_z7550-01136_jdk6_16020_ia.depot
4)执行jdk安装命令.
bash-4.2# swinstall -s Itanium_JDK_6.0.20_-_Jul_2013_z7550-01136_jdk6_16020_ia.depot
NOTE: The interactive UI was invoked, since no software was specified.
Starting the terminal version of swinstall...
To move around in swinstall:
- use the "Tab" key to move between screen elements - use the arrow keys to move within screen elements - use "Ctrl-F" for context-sensitive help anywhere in swinstall
On screens with a menubar at the top like this:
------------------------------------------------------ |File View Options Actions Help| | ---- ---- ------- ------------------------------- ---|
- use "Tab" to move from the list to the menubar - use the arrow keys to move around - use "Return" to pull down a menu or select a menu item - use "Tab" to move from the menubar to the list without selecting a menu item - use the spacebar to select an item in the list
On any screen, press "CTRL-K" for more information on how to use the keyboard.
Press "Return" to continue... |
按Enter键进入图形节目。如下:
1)刚进到可能会遇到下面这个错误,不要慌,后面会告诉你解决步骤。
2)选择OK之后,进入下图界面,手动填写”主机名”和“jdk安装文件的全路径”。
3)选择OK,进入下图界面,只需轻点空格键。
4)选择jdk的安装路径。(注:使用tab键切换到菜单栏的Actions)
待弹出的路径填写框之后,参考路径填写:/usr/jdk1.6。
5)选择Install开始安装jdk。(注:刚刚的轻点空格就在这里用上了,否则按install会弹出警告)
6)安装分析。待状态变为”Ready”之后,选择OK.
7)正式安装jdk开始。待Percent Completae为100%时,选择Done即可完成安装。
8)退出图像画安装界面。如下图:
四、JDK1.6安装后的文件路径在哪里呢?
bash-4.2# /usr/jdk1.6/opt/java6/bin/java -version
java version "1.6.0.20"
Java(TM) SE Runtime Environment (build 1.6.0.20-jinteg_20_jun_2013_10_03-b00)
Java HotSpot(TM) Server VM (build 20.45-b01-jre1.6.0.20-rc1, mixed mode)
PS:操作步骤的很多图片发现没复制过来,如果哪位同学需要看全文,可以mailto:924211739@qq.com索取。
HP-UNIX JDK1.6的详细安装说明