Setting up Java Development Environment in Windows

Ashish ShresthaAshish Shrestha
2 min read

Download JDK

  1. Download the Java Development Kit.

  2. Choose the appropriate version for Java SE Development Kit.

Installation Steps

  1. Run the setup.

  2. Proceed the installation steps.

Setting up Environment Variables

  1. Go to the C: drive and navigate to Java bin folder.

  2. Copy the path.

  3. Search for environment variables.

  4. Go to Environment Variables.

  5. Select the path and Edit.

  6. Select New and paste the path copied previously.

Configuring Visual Studio Code

  1. Launch the Visual Studio Code.

  2. Go to Extensions and search for “java extension pack” and install it.

Creating New Java Project

  1. To create a new Java project press CTRL + P on the keyboard to open the command palette.

  2. Type “> java: create” and select the highlighted one.

  3. Select No build tools as default.

  4. Select your project location.

  5. Now input a Java project name and press Enter to confirm.

  6. The Java project is setup successfully.

  7. Now, navigate to src folder and open App.java and Run the Java program.

  8. Happy Learning Java 😊.

0
Subscribe to my newsletter

Read articles from Ashish Shrestha directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ashish Shrestha
Ashish Shrestha