Oracle Java

Make Your Oracle JDK 7 as Default JVM in Ubuntu

In some Linux distros, the vendor included OpenJDK as the default JVM, but sometime this not what you’re looking for. If you want to use Sun JDK instead, you can follow below instructions:

  1. Purge existing OpenJDK from your Ubuntu:
  2. Add a new repository and install Sun JDK: