Installation & Setup

 

Installation & Setup

Step 1:

Before starting the installation processes, it is advisable to check if your PC already has Java installed. To do this, open the command prompt and type the following:


C:\Users\yourName>java -version


Output:

java version "1.8.0_281"
Java(TM) SE Runtime Environment (build 1.8.0_281-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.281-b09, mixed mode)

 

Step 2:

If your system does not have Java installed, download it from the official website: https://www.oracle.com/java/technologies/downloads/

 

Step 3:

Run the downloaded file to install Java on your machine. 

 

Step 4:

  • Right click on This PC (My Computer).
  • Click on properties.
  • Go to Advanced System Settings.
  • Under this click on Environment Variables.
  • Inside System Variables, select Path and click on Edit.
  • Give the path of directory where Java is installed followed by a \bin.
  • Repeat step 1 to check if Java has been set up and running on your machine.

 

Java programs can be written in normal text editor like a notepad or more complicated editors(IDE’s) like Netbeans, Eclipse or Visual Studio Code.

For the sake of this tutorial, we will be using Visual Studio Code.