当前位置: 技术问答>linux和unix
请教jdk安装问题
来源: 互联网 发布时间:2016-02-18
本文导语: 1、安装jdk时出现如下问题 我先将j2sdk-1_4_2_01-linux-i586.bin文件从光驱中copy 入/usr/local下,再执行 # cd /usr/local # chmod +x ./ j2sdk-1_4_2_01-linux-i586.bin 后,用ls –al查看j2sdk-1_4_2_01-linux-i586.bin,发现已有了x权限 然后再执...
1、安装jdk时出现如下问题
我先将j2sdk-1_4_2_01-linux-i586.bin文件从光驱中copy 入/usr/local下,再执行
# cd /usr/local
# chmod +x ./ j2sdk-1_4_2_01-linux-i586.bin
后,用ls –al查看j2sdk-1_4_2_01-linux-i586.bin,发现已有了x权限
然后再执行
# ./ j2sdk-1_4_2_01-linux-i586.bin
出现文本界面不断按空格或回车后出现
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
tail: cannot open `+473' for reading: No such file or directory
Checksumming...
1
The download file appears to be corrupted. Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.
2、加载光驱时出现如下错误,不知和上面问题有无联系
[root@localhost ~]# cd /mnt
[root@localhost mnt]# mount /dev/cdrom
mount: /dev/hda already mounted or /media/我的光盘 busy
mount: according to mtab, /dev/hda is already mounted on /media/我的光盘
我的jdk文件重下载了好几次了,仍有这个问题
以上错误和文件系统有关吗?我的rhel 5是ext3文件系统吗?
请指教解决方案
我先将j2sdk-1_4_2_01-linux-i586.bin文件从光驱中copy 入/usr/local下,再执行
# cd /usr/local
# chmod +x ./ j2sdk-1_4_2_01-linux-i586.bin
后,用ls –al查看j2sdk-1_4_2_01-linux-i586.bin,发现已有了x权限
然后再执行
# ./ j2sdk-1_4_2_01-linux-i586.bin
出现文本界面不断按空格或回车后出现
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
tail: cannot open `+473' for reading: No such file or directory
Checksumming...
1
The download file appears to be corrupted. Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.
2、加载光驱时出现如下错误,不知和上面问题有无联系
[root@localhost ~]# cd /mnt
[root@localhost mnt]# mount /dev/cdrom
mount: /dev/hda already mounted or /media/我的光盘 busy
mount: according to mtab, /dev/hda is already mounted on /media/我的光盘
我的jdk文件重下载了好几次了,仍有这个问题
以上错误和文件系统有关吗?我的rhel 5是ext3文件系统吗?
请指教解决方案
|
楼主可以安装zip包的jdk,只需解压缩jdk的zip包到一个特定目录即可