Java:- JDK – Installing Java JDK on MS Windows

Background

It is time for yours truly to catch up on Log4J Security vulnerabilities.

Java JDK Installation

Sadly, actually very sad, I do not have Java JDK ( Java Development Kit ) installed on my new computer.

 

Artifacts

Location

Java’s JDK is available at https://www.oracle.com/java/technologies/downloads/ ( Link ).

As of today, 2021-December-31st, the currently availed version is 17.01.1.

Choice

Our OS is Windows and so we chose the x64 MSI Installer for MS Windows.

 

Installing

To install, simply run the downloaded installer.

Steps

  1. The Welcome Screen appears
    • The version number ( 17.0.1 ) is listed
    • Please make sure that it matches your expectation based on the artifact you downloaded
  2. Installation Folder
    • Based on your organization practices or your personal preference, please choose the drive and folder the application should be installed on
  3. Installing
    • Installation is began
  4. Completion
    • Upon completion, the installer informs you that application has been successfully completed

Images

Image – Welcome

Image – Installation Folder

 

Image – Extracting Installer

Installation Complete

 

Review Installation

Command Line

Access terminal and run

  1. javac compiler
    • javac
  2. java runtime
    • java

javac compiler ( javac )

version
Syntax

java --<option>

Sample

javac --version


Output – Image

Output – Text

>javac --version
javac 17.0.1

 

java runtime ( java )

version
Syntax

java -- <option>

 

Sample

java --version


Output – Image
Output – Text

>java --version
java 17.0.1 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)

 

Summary

Obviously could have gone with one of Java’s IDE such as Eclipse or IntelliJ IDEA.

But, want to keep things simple and focused on the task at hand.

 

References

  1. Oracle
    • Java

3 thoughts on “Java:- JDK – Installing Java JDK on MS Windows

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s