![]() So we install it, we need to execute the following command: sudo apt-get install -y openjdk-18-jdk The Java OpenJDK version 18 is already included in the Ubuntu 22.04 repo. OpenJDK 64-Bit Server VM (build 17.0.5+8-Ubuntu-2ubuntu122.04, mixed mode, sharing) ![]() OpenJDK Runtime Environment (build 17.0.5+8-Ubuntu-2ubuntu122.04) You will receive the following output: :~# java -version Once installed, execute the following command to check the Java version: java -version To install it you can execute the following command: sudo apt-get install openjdk-17-jdk openjdk-17-jre The Java OpenJDK version 17 is, by default, included in the Ubuntu 22.04 repo. sudo apt-get update -y & sudo apt-get upgrade -y Step 2.
0 Comments
Leave a Reply. |