Posts

Showing posts with the label jdk

Ubuntu 10.04 : Install and set Sun JDK as default

Image
  Since ubuntu 10.04, Sun JDK has been dropped and replaced by openjdk . Literally replaced, ie : Sun JDK remove, openjdk installed. This is performed during the upgrade without explicitly asking you for your consent... which is quite ugly... After the upgrade, my tomcat was not working anymore... Anyway, in order to install Sun JDK back you just have to : vi /etc/apt/sources.list and check if the following line is present : deb http://archive.canonical.com/ lucid partner if not, add it at the end of the file. then run sudo aptitude update to get the package list from the new repo. and then run : sudo aptitude install sun-java6-jdk but after that, if you run java -version, it's still the openjdk version. thomas@daisybox:/usr/lib/jvm/java-6-sun$ java -version java version "1.6.0_18" OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) thomas@daisybox:/usr/lib/jvm/java-6-sun$ which java /usr/...