Setting up Java Development Environment in Windows


Download JDK
Download the Java Development Kit.
Choose the appropriate version for Java SE Development Kit.
Installation Steps
Run the setup.
Proceed the installation steps.
Setting up Environment Variables
Go to the C: drive and navigate to Java bin folder.
Copy the path.
Search for environment variables.
Go to Environment Variables.
Select the path and Edit.
Select New and paste the path copied previously.
Configuring Visual Studio Code
Launch the Visual Studio Code.
Go to Extensions and search for “java extension pack” and install it.
Creating New Java Project
To create a new Java project press CTRL + P on the keyboard to open the command palette.
Type “> java: create” and select the highlighted one.
Select No build tools as default.
Select your project location.
Now input a Java project name and press Enter to confirm.
The Java project is setup successfully.
Now, navigate to src folder and open App.java and Run the Java program.
Happy Learning Java 😊.
Subscribe to my newsletter
Read articles from Ashish Shrestha directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
