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