ubuntu下jdk文档的安装

利用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/网站下载 doc文件。此处有英文和日文两个doc文件,根据个人需要选择下载。
http://developers.sun.com.cn/download/java_se.html可以下载中文的doc文件,不过貌似安装完后还是英文的doc
直接下载的doc要改为 jdk-6-doc.zip文件名,才能用!

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:在安装过程中,可能会询问管理员密码,输入即可。

posted @ 2008-11-02 19:14  HCOONa  阅读(441)  评论(0编辑  收藏  举报