Step 1 – Prerequsities
Before beginning the installation login to shell as the sudo user and install some required packages on your Debian system. Now, add the following PPA to your Debian system. This PPA contains a package oracle-java11-installer having the Java installation script.
Step 2 – Install Java 11 on Debian 9
Then install Java 11 using the script provided in these packages. This script downloads the Java archive from the official site and configures on your system Also, install the following package to configure Java 11 as default Java version on your Debian 9 system.
Step 3 – Verify Java Version
Check the installed Java version on your system using the following command. You have successfully installed Java 11.0.1 on Debian 9 Stretch Linux system. Happy coding!