您的位置:首页 > 编程语言 > Java开发

关于ubuntu下java6的doc安装问题

2008-09-25 21:29 399 查看
ubuntu版本:ubuntu8.04.1 desktop

利用sudo apt-get install sun-java6-doc命令是无法安装成功的。总是提示说

。。。。。。。。。。。
正在设置 sun-java6-doc (6-03-0ubuntu2) ...

This package is an installer package, it does not actually contain the

JDK documentation. You will need to go download one of the

archives:

jdk-6-doc.zip jdk-6-doc-ja.zip

(choose the non-update version if this is the first installation).

Please visit

http://java.sun.com/javase/downloads/

now and download. The file should be owned by root.root and be copied

to /tmp.

[Press RETURN to try again, 'no' + RETURN to abort]

处理办法如下:
1、手动到

http://java.sun.com/javase/downloads/网站下载 jdk-6-doc.zip文件。此处有英文和日文两个doc文件,根据个人需要选择下载。

2、将下载好的jdk-6-doc.zip文件拷贝到/tmp目录下 命令: sudo cp jdk-6-doc.zip /tmp

3、安装java6的doc,命令: sudo apt-get install sun-java6-doc。

4、安装完成。

PS:在安装过程中,可能会询问管理员密码,输入即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: