Install Oracle (Sun) Java in Debian or LMDE

By | 2012/06/18

The easiest way to install the latest java is with the excellent repository found on this page:

http://www.duinsoft.nl/packages.php?t=en

The manual installation works for a one time install, however I suggest using the repository method. This also installs the browser plugin for Firefox / Iceweasel.


Here is how to use the repository!

1. Create the following file:

$ sudo nano /etc/apt/sources.list.d/duinsoft.list

2. Put in the following then Control+X to save:

deb http://www.duinsoft.nl/pkg debs all

3. Import the GPG key:

$ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26

4. Refresh repositories:

$ sudo apt-get update

5. Install java

$ sudo apt-get install update-sun-jre

Done!

$ java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)