How to install JDK 11 under Ubuntu?
To install JDK 11 under Ubuntu, follow these steps:
Download the JDK 11 installer from the Oracle website: https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
Open a terminal and navigate to the directory where you downloaded the installer.
Make the installer executable by running the following command:
chmod +x jdk-11.0.X_linux-x64_bin.deb
Install the JDK by running the installer with the following command:
sudo apt install ./jdk-11.0.X_linux-x64_bin.deb
Once the installation is complete, you can verify that the JDK is installed by running the following command:
java -version
This should print the version of the JDK that you just installed.
I hope this helps! Let me know if you have any questions.