OS: Debian GNU/Linux 4.0 (etch) on VMware Player


# apt-cache search sun-java
sun-java5-bin - Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture dependent files)
sun-java5-demo - Sun Java(TM) Development Kit (JDK) 5.0 demos and examples
sun-java5-doc - Sun JDK(TM) Documention -- integration installer
sun-java5-fonts - Lucida TrueType fonts (from the Sun JRE)
sun-java5-jdk - Sun Java(TM) Development Kit (JDK) 5.0
sun-java5-jre - Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture independent files)
sun-java5-plugin - The Java(TM) Plug-in, Java SE 5.0
sun-java5-source - Sun Java(TM) Development Kit (JDK) 5.0 source files

パッケージでらくらくインストールできるようになってた。感謝。


# aptitude install sun-java5-jdk

で、以下の4つのパッケージも同時にインストールされる。

sun-java5-bin
sun-java5-demo
sun-java5-jdk
sun-java5-jre


# java -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)

すばらしい。ちゃんと Sun の Java らしいのが入ってる。

他の sun-java5-* パッケージもインストールしていく。


# aptitude install sun-java5-fonts
# aptitude install sun-java5-source

これらはあっさりインストール完了。

次に sun-java5-plugin.


aptitude install sun-java5-plugin

"Configuring x-ttcidfont-conf" で


XFree86 4.x has two backends to handle TrueType fonts, FreeType and X-TT. FreeType (a simple backend) is standard, while X-TT is alternative and has a mechanism of decorating TrueType fonts that can create bold and oblique faces from a single font.
 
If unsure, choose FreeType.
 
Backend to use for TrueType handling on X:

とたずねてくるが、よくわからないので、 "freetype" を選択。If unsure (確信がもてないならFreeTypeを選べ) って言われてるので。

最後に sun-java5-doc をインストールする。


# aptitude install sun-java5-doc

とすると、


This package is an installer package, it does not actually contain the J2SDK documentation. You will need to go download one of the archives:
 
    jdk-1_5_0-doc.zip jdk-1_5_0-doc-ja.zip
 
(choose the non-update version if this is the first installation).
Please visit
 
    http://java.sun.com/j2se/1.5.0/download.html
 
now and download.  The file should be owned by root.root and be copied to /tmp.

jdk-1_5_0-doc.zip か jdk-1_5_0-doc-ja.zip のどちらかを http://java.sun.com/j2se/1.5.0/download.html からダウンロードして、/tmp に置くようにと指示される。
日本人なので日本語ドキュメントを所望。http://java.sun.com/j2se/1.5.0/ja/download.html から jdk-1_5_0-doc-ja.zip をダウンロードして、/tmp に置く。インストールを続行して完了。
/tmp/jdk-1_5_0-doc-ja.zip は不要になったので削除する。
で、一体どこにドキュメントは収められたのだろう?


# find / | grep features
/usr/share/doc/sun-java5-jdk/html/guide/security/jgss/jgss-features.html
/usr/share/doc/sun-java5-jdk/html/guide/access/new-features.html
/usr/share/doc/sun-java5-jdk/html/guide/access/new-features1_5.html
/usr/share/doc/sun-java5-jdk/html/guide/access/new-features1_5-OLD.html
/usr/share/doc/sun-java5-jdk/html/guide/net/features.txt
/usr/share/doc/sun-java5-jdk/html/guide/2d/14_features.html
/usr/share/doc/sun-java5-jdk/html/guide/2d/new_features.html
/usr/share/doc/sun-java5-jdk/html/guide/imageio/new_features.html
/usr/share/doc/sun-java5-jdk/html/relnotes/features.html

/usr/share/doc/sun-java5-jdk/html/ がドキュメント置場らしい。
/usr/share/doc/sun-java5-jdk/html/api がAPIリファレンス。

tags: zlashdot Linux

Posted by NI-Lab. (@nilab)