Question: How Do I Install Java Jdk on Linux?
Contents How Do I Install Java Jdk on Ubuntu? Installing the Default Openjdk (Java 11) First, Update the Apt Package Index with: Sudo Apt Update. Once the...
Contents
How do I install Java JDK on Ubuntu?
Installing the Default OpenJDK (Java 11)
- First, update the apt package index with: sudo apt update.
- Once the package index is updated install the default Java OpenJDK package with: sudo apt install default-jdk.
- Verify the installation, by running the following command which will print the Java version: java -version.
Must Read
How do I install Java on Linux terminal?
Installing Java on Ubuntu
- Open the terminal (Ctrl+Alt+T) and update the package repository to ensure you download the latest software version: sudo apt update.
- Then, you can confidently install the latest Java Development Kit with the following command: sudo apt install default-jdk.