Once the OpenJDK 17 Download and installation is complete, we can verify the installed OpenJDK 17 version using Command Prompt. Click on Windows Search Button and type cmd and then click on command prompt shortcut. Go to command prompt and type java -version. The above command prints the OpenJDK 17 version you installed. Java -version.
I had openjdk 11.0.2 installed. I upgraded the java version by running. sudo apt update sudo apt install openjdk-11-jdk If I run sudo apt install openjdk-11-jdk again, it shows a message saying that "openjdk-11-jdk is already the newest version (11.0.11+9-0ubuntu2~20.04)" However, when I do java -version it displays the older version 11.0.2 not If you want to develop Java programs then please install the openjdk-8-jdk package. Fedora, Oracle Linux, Red Hat Enterprise Linux, etc. On the command line, type: $ su -c "yum install java-1.8.0-openjdk" The java-1.8.0-openjdk package contains just the Java Runtime Environment. About the Microsoft Build of OpenJDK. The Microsoft Build of OpenJDK is a no-cost distribution of OpenJDK that's open source and available for free for anyone to deploy anywhere. It includes Long-Term Support (LTS) binaries for Java 11 and Java 17 on x64 server and desktop environments on macOS, Linux, and Windows, AArch64/ARM64 on Linux and wqh1bXj.