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)

6 thoughts on “Install Oracle (Sun) Java in Debian or LMDE

  1. Vitor

    Thanks a lot man! That worked really perfect on LMDE.
    Although I had to select the default java and javaws versions using
    update-alternatives –config java
    update-alternatives –config javaws

    Reply
  2. sandr

    Thanks. It still works like a charm.
    $ java -version
    java version “1.8.0_25”
    Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
    Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

    Reply
  3. N9JCA Chris

    Thanks Worked Like a Charm
    Finally after 3 Years found some Straight forward Instructions
    on How to install Java in LMDE

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.