Run the following commands to update apt-cache and then install Java 8 on Debian system using the apt-get package manager. You are all set to start Java installation on Debian. sudo apt-key adv -keyserver -recv-keys EEA14886 Now import GPG key on your system for validating packages before installing them. sudo vim /etc/apt//java-8-debian.listĪnd add following content in it. You need to add that PPA repository to your system for installing Java 8 on Debian.Ĭreate a new Apt configuration file /etc/apt//java-8-debian.list, and edit in text editor. The webupd8 team has built a Java installer package for Debian systems.
You can use below link to install Java 11. IMPORTANT: Java 8 is no longer available to download publically.