The command line

GNU/Linux, web development and some other things

Goodbye Sun-java5-jdk, Welcome Openjdk-6-jdk

With Debian Lenny, I finally can install openjdk instead of the official java from sun.com.

As root:

# aptitude install openjdk-6-jdk

This uninstalled (I think, because I don’t remember if I first uninstalled the sun-java5-jdk :)) the sun-java5-jdk version and installed the new openjdk-6-jdk.

I updated the alternatives from debian:

# update-java-alternatives -s java-6-openjdk

And finally, to test:

# java -version
java version “1.6.0_0”
OpenJDK  Runtime Environment (build 1.6.0_0-b11)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)

Great.