Wednesday, July 25, 2012

Install Latest Java in Debian / Ubuntu / Linux Mint

In previous versions, many Linux distributions including Debian-based systems (Debian, Ubuntu, Linux Mint/LMDE) have official Java included in their official repository, before Oracle withdrew it and forbade it from being included in operating system or third-party repository.

The decision make users have to download Jave JRE binary from official Oracle Java website, and install it manually. Thankfully, some people have made installation script to make it easy to download and install it automatically. In this article, I use a repository of, owned by a member of Dutch Ubuntu community. Using this repository, you just do regular installation process by adding repository and then install it either via Synaptic or Terminal.

This repository contains installation script to automatically pull and download latest Oracle (Sun) Java JRE binary from official Java (Oracle) website, and install it to your system. After you have it installed, the script and the binary will be updated automatically next time when new updated package is available.

OK then, here you go.

  1. Add APT Repository

    Run the following in Terminal (one command at a time):
    sudo apt-key adv --keyserver --recv-keys 5CB26B26
    echo "deb debs all" | sudo tee -a /etc/apt/sources.list.d/duinsoft.list
    sudo apt-get update
  2. Install Oracle JRE Package

    Run the following command in Terminal:
    sudo apt-get install update-sun-jre

Now you should have latest Oracle Java installed on your system.

To verify your Java installation, go to (you need to restart your browser first for the installed Java plugin to take effect).


PS: Still, sorry for my English :)
Google+ Comments Disqus Comments
Disqus Comments Google+ Comments
comments powered by Disqus