Installing
-
2. Enabling OpenJDK 17 PPA
Add OpenJDK 17 PPA for Ubuntu GNU/Linux
-
3. Installing OpenJDK 17
Then to Install OpenJDK 17 in Ubuntu
First, to look up all the available flavors play:sudo apt search openjdk-17
So next for OpenJDK JDK 17 issue:
sudo apt install openjdk-17-jdk
Where for the Java Runtime instead:
sudo apt install openjdk-17-jre
Authenticate with the User Admin Pass.
If Got “User is Not in Sudoers file” then see: How to Enable sudo
Now to Check the current Java:java -version
And in output you find it:
Finally, to check for available Java releases:
sudo apt search openjdk | grep jdk
Contents