How to install JDK 11 under Ubuntu?

To install JDK 11 under Ubuntu, follow these steps:

  1. Download the JDK 11 installer from the Oracle website:

  2. Open a terminal and navigate to the directory where you downloaded the installer.

  3. Make the installer executable by running the following command: chmod +x jdk-11.0.X_linux-x64_bin.deb

  4. Install the JDK by running the installer with the following command: sudo apt install ./jdk-11.0.X_linux-x64_bin.deb

  5. 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.