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 (
These instructions use the following file:
- 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.
- 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.
- 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
version in the current directory.
- Delete the
.tar.gz file if you want to save disk space.
2) su -
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 apt-get update