What Java Version Are You Running? Let’s Take a Look Under the Hood of the JDK!
From time to time, you need to check which Java version is installed on your computer or server, for instance, when starting a new project or configuring an application to run on a server.
But did you know there are multiple ways you can do this and even get much more information than you might think very quickly?
Let’s find out…
Probably the easiest way to find the installed version is by using the java -version terminal command:
$ java -version
openjdk version “19” 2022-09-20
OpenJDK Runtime Environment Zulu19.28+81-CA (build 19+36)
OpenJDK 64-Bit Server VM Zulu19.28+81-CA (build 19+36, mixed mode, sharing)