DebianにSun JDK6をインストールする
Debian 5.0.6にSun JDK6をインストールしてみた。
若干めんどくさかったのでメモ
インストール準備
Sun Java JDKはnon-freeとして管理されているため、
/etc/apt/source.listに設定を追加する
deb http://ftp.jp.debian.org/debian lenny main non-free追記後、"aptitude update"を実行。
また、"jdk-docs"をOracleよりダウンロードし、/tmpに設置しておく必要があるが、
インストールするJDKのアップデートバージョンにより必要となる ファイル名が異なるため、
インストール時のメッセージにあわせてファイルを準備する必要がある
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-6u12-docs.zip jdk-6u12-docs-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.※該当のアップデートバージョンのjdk-docsを見つけられなかったため、
jdk-6u10-docs-ja.zipとjdk-6u22-docs.zipをリネームして利用。