关于J2sdk 1.4 的Debian安装

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看看是否有正常的的版本号输出。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章