Ubuntu with Oracle/SUN JRE/JDK
In the current Ubuntu one can only get the open-jre and open-jdk installed via apt(itude). Because of some major issues concerning Swing, I needed to install the sun-jre and sun-jdk. To make this possible you have to edit /etc/apt/sources.list as root (or with sudo
). Uncomment the two following lines close to the end of the file.
deb http://archive.canonical.com/ubuntu lucid partner deb-src http://archive.canonical.com/ubuntu lucid partner
Save the file and do a
sudo aptitude update
or
sudo apt-get update
After that you can install the packages sun-java6-jre and sun-java6-jdk with an aptitude search (or apt-cache search) ready for installation. For using this runtime environment as systems default you need to do a
sudo update-alternatives --config java
which produces output similar to the following(sorry for the german bash
)
Es gibt 2 Auswahlmöglichkeiten für die Alternative java (welche /usr/bin/java bereitstellen). Auswahl Pfad Priorität Status ------------------------------------------------------------ * 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 Auto-Modus 1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manueller Modus 2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manueller Modus Drücken Sie die Eingabetaste, um die aktuelle Wahl[*] beizubehalten, oder geben Sie die Auswahlnummer ein:
choose the correct number (here: 2), hit Enter…done!

Recent Comments