Oracle JDK under Debian

OpenJDK sometimes makes problems, so I still prefer the Oracle version. Here is how to install it manually under debian/ubuntu:

  1. Download binary installer from Oracle’s download page and save it to /opt.
  2. 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

Leave a Comment