Quick Index
Version


Check Java Development Kit (JDK) Version
Here we run javac with the flag.

The output should be similar to that shown (your number might be different)
>javac -version

javac 18.0.2.1
Check Java Runtime Environment (JRE) Version
Here we run java with the flag.

The output should be similar to that shown (your numbers might be different)
>java -version

java version "18.0.2.1" 2022-08-18
Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)
Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)


Basic Verification


First we'll simply verify a Java compile and run..

If this verification passes, the is complete (you are good to go). Otherwise continue.

System Path Verification


A really helpful simple verification is here....

Next


If these verifications pass then the JDK is installed on your system and you are ready to code in Java.

If they fail, then continue with the Java installation.