Environment Setup for Java

Environment Setup for Java Application Development

In this article, I am going to discuss Environment Setup for Java Application Development step by step in the windows operating system. Please read our previous article, where we discussed Java Application Development Lifecycle (JDK, JVM, and JRE) in detail.

Download and Install Java JDK8

This Java Development Kit (JDK) allows you to code and run Java programs. It’s possible that you install multiple JDK versions on the same PC. But it’s recommended that you install only the latest version.

Download and Install JDK8 in Windows

Following are the steps to install Java in Windows :

Step1: Go to link https://www.oracle.com/java/technologies/javase-downloads.html and click on download JDK (for JAVA latest version) as shown in the below image.

Environment Setup for Java Application Development

Step2: Next,

  1. Accept License Agreement
  2. Download the latest Java JDK for your version (32 or 64 bit) of java for Windows.

Download and Install JDK8 in Windows

Step3: Once the download is complete, run the exe for install JDK. Click Next.

Environment Setup for Java

Step4: Select the PATH for Java installation and click next.

Environment Setup for Java Application Development

Step5: Once the installation is complete click Close.

Java Application Environment Setup

Set Environment Variables in Java: Path and Classpath

The PATH variable gives the location of executables like javac, java, etc. It is possible to run a program without specifying the PATH but you will need to give full path of executable like C:\Program Files\Java\jdk-13.0.1\bin\javac A.java instead of simple javac A.java. The CLASSPATH variable gives the location of the Library Files.

Following are the steps to set Environment Variables in Java :

Step1: Right Click on My Computer and select the properties.

Set Environment Variables in Java

Step2: Click on Advanced system settings.

Set Environment Variables in Java Path and Classpath

Step3: Click on Environment Variables.

Set Environment Variables in Java Path

Step4: Click on the new Button of User variables.

Set Environment Variables in Java Classpath

Step5: Type PATH in the Variable name.

Set Environment Variables in Java Path and Classpath

Step6: Copy the path of bin folder which is installed in the JDK folder.

Copy the path of bin folder which is installed in the JDK folder

Step7:  Paste Path of bin folder in Variable value and click on OK Button.

Paste Path of bin folder in Variable value and click on OK Button

Note: In case you already have a PATH variable created in your PC, edit the PATH variable to

PATH = <JDK installation directory>\bin;%PATH%;

Step8:  You can follow a similar process to set CLASSPATH.

Set Environment Variables in Java Path and Classpath

Step9: Click on OK button

Java Application Environment Setup for Development

Step10: Go to command prompt and type javac commands.

If you see a screen like below, Java is installed.

Environment Setup for Java Application Development in Windows Operating System

Download and Install Eclipse to Run Java

Following is a step by step guide to download and install Eclipse IDE:

Step1: Open your browser and type https://www.eclipse.org/

Step2: Click on the Download button.

Download and Install Eclipse to Run Java

Step3: Click on “Download 64 bit” button

Download and Install Eclipse to Run Java

Step4: Click on the “Download” button

Environment Setup for Java Application Development in Windows Operating System

Step5:  Install Eclipse.

  1. Click on “downloads” in Windows file explorer.
  2. Click on the “eclipse-inst-win64.exe” file.

Environment Setup for Java

Step6: Click on “Run as administrator”

Environment Setup for Java Application Development

Step7: Click on “Eclipse IDE for Java Developers”

Java Application Environment Setup

Step8: Click on the “INSTALL” button

Java Application Environment Setup for Development

Step9: Click on “LAUNCH” button

Environment Setup for Java Application Development in Windows Operating System

Step10: Browse the workspace of your choice and click on the “Launch” button.

Browse the workspace of your choice and click on the "Launch" button

Step11: Click on “Create a new Java project” link. And your Eclipse IDE is ready to use.

Click on "Create a new Java project" link. And your Eclipse IDE is ready to use.

In the next article, we are going to Create our First Java Program. Here, in this article, I try to explain the step by step process for the Java Application Environment Setup for Development. I hope you enjoy this Java Application Environment Setup for Development article.

Leave a Reply

Your email address will not be published. Required fields are marked *