2008年5月3日

Ubuntu 8.04 install Java

Ubuntu JavaInstallation
Install sun-java5-jdk
$ sudo apt-get install sun-java5-jdk sun-java5-fonts sun-java5-source
Install path
$ ls /usr/lib/jvm/java-1.5.0-sun

Install sun-java6-jdk
$ sudo apt-get install sun-java6-jdk sun-java6-fonts sun-java6-source
Install path
$ ls /usr/lib/jvm/java-6-sun

Install sun-java6-jre plug-in for Mozilla-based browsers
$ sudo apt-get install sun-java6-plugin

Java Version
$ java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)

Java Control Panel
$ ControlPanel

Setup default java and jar
$ sudo update-alternatives --config java
$ sudo update-alternatives --config jar

沒有留言:

網誌存檔