1.修改sources.list,添加以下内容:
http://debian.cn99.com/java stable non-free
2.执行apt-get update更新资源列表
3.到sun的网站下载 J2SE 1.4.2 Documentation,然后把它放到系统/tmp文件夹,并且将所有权赋予root。
4.apt-get install j2sdk*
5.安装开始后,有些提示,不用理会全部都是yes。
6.如果你没有下载 J2SE 1.4.2 Documentation ,那么在安装过程当中可能会出现提示:
This package is an installer package, it does not actually contain the
J2SDK documentation. You will need to go download one of the
archives:
j2sdk-1_4_2-doc.zip j2sdk-1_4_0-doc-ja.zip j2sdk-1_4_2-doc-ja.zip
(choose the non-update version if this is the first installation).
Please visit
http://java.sun.com/j2se/1.4.2/download.html
now and download. The file should be owned by root.root and be copied
to /tmp.
意思很简单,就是服务器上并没有提供 J2SE 1.4.2 Documentation ,只是提供一个安装包,没有包含该文件。
7.执行命令 Java -version看看是否有正常的的版本号输出。
http://debian.cn99.com/java stable non-free
2.执行apt-get update更新资源列表
3.到sun的网站下载 J2SE 1.4.2 Documentation,然后把它放到系统/tmp文件夹,并且将所有权赋予root。
4.apt-get install j2sdk*
5.安装开始后,有些提示,不用理会全部都是yes。
6.如果你没有下载 J2SE 1.4.2 Documentation ,那么在安装过程当中可能会出现提示:
This package is an installer package, it does not actually contain the
J2SDK documentation. You will need to go download one of the
archives:
j2sdk-1_4_2-doc.zip j2sdk-1_4_0-doc-ja.zip j2sdk-1_4_2-doc-ja.zip
(choose the non-update version if this is the first installation).
Please visit
http://java.sun.com/j2se/1.4.2/download.html
now and download. The file should be owned by root.root and be copied
to /tmp.
意思很简单,就是服务器上并没有提供 J2SE 1.4.2 Documentation ,只是提供一个安装包,没有包含该文件。
7.执行命令 Java -version看看是否有正常的的版本号输出。
本文介绍在Debian系统安装J2SE及相关文档的步骤。先修改sources.list并更新资源列表,到sun网站下载J2SE 1.4.2 Documentation放至/tmp文件夹并赋予root所有权,执行安装命令,安装中提示选yes,若未下载文档会有提示,最后可通过Java -version查看版本号。

116

被折叠的 条评论
为什么被折叠?



