OpenJDK sometimes makes problems, so I still prefer the Oracle version. Here is how to install it manually under debian/ubuntu:
- Download binary installer from Oracle’s download page and save it to /opt.
- Execute the following commands
cd /opt chmod +x jdk-6u25-linux-x64.bin ./jdk-6u25-linux-x64.bin update-alternatives --install /usr/bin/java java /opt/jdk1.6.0_25/bin/java 2000