Four step tutorial for installing Java on your machine (for Windows OS users)
- Download the 'Java Development Kit' (Java JDK) - https://www.oracle.com/java/technologies/javase-downloads.html or click on the latest 'Java JDK' version kit - https://www.oracle.com/java/technologies/javase-jdk15-downloads.html
- Download the '.exe' file for the needed OS - JDK ('jdk-15.0.1_windows-x64_bin.exe' for Windows x64 in my case)
- Open the downloaded '.exe' file and installing 'Java JDK'. By default the kit will be installed in the 'Program Files' directory. The path should look like this
C:\Program Files\Java\jdk-15.0.1
- To verify if Java was successfully installed on your machine run the following command in 'Command Prompt (cmd)':
java -version
. It shoud display the installed version and build for the 'Java Development kit'
- Copy to the clipboard the path for the Java JDK installation:
C:\Program Files\Java\jdk-15.0.1
- Right click on 'My computer' -> 'Settings' -> 'Environment Variables'
- Click on 'Environment Variables' button
- Under 'System Variables', click 'New'
- In 'Variable Name' field type: 'JAVA_HOME'
- In 'Variable Value' paste the path the Java JDK installation:
C:\Program Files\Java\jdk-15.0.1