Skip to Main Content

Installing Java 8 SE on Debian - Linux

gdillenApr 11 2014 — edited May 26 2014

What is the recommended way to install Java 8 SE on Debian (32-bit or 64-bit):

1) As explained on this page JDK Installation for Linux Platforms

Installation of the 32-bit JDK on Linux Platforms

This procedure installs the Java Development Kit (JDK) for 32-bit Linux, using an archive binary file (.tar.gz).

These instructions use the following file:

  1. Download the file.Before the file can be downloaded, you must accept the license agreement. The archive binary can be installed by anyone (not only root users), in any location that you can write to. However, only the root user can install the JDK into the system location.
  2. Change directory to the location where you would like the JDK to be installed, then move the .tar.gz archive binary to the current directory.
  3. Unpack the tarball and install the JDK.
    % tar zxvf jdk-8uversion-linux-i586.tar.gz 

    The Java Development Kit files are installed in a directory called jdk1.8.0_version in the current directory.

  4. Delete the .tar.gz file if you want to save disk space.


2) su -

echo "deb trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list

echo "deb-src trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list

apt-key adv --keyserver --recv-keys EEA14886 apt-get update


install oracle-java8-installer



Post Details
Added on Apr 11 2014
1 comment