Setup Java Programming Language In Vs Code || Step By Step


First of all download JDK(Java Development Kit) in your operating system.


Then Open that JDK file and allow the permissions.

Then go to JDK file location C:\Program Files\Java\jdk-17.0.1\bin . Copy this file location.

Setup java programming language in visual studio code

Then open start menu and search System Enviroment Variables. Click on enviroment variables and see the path option in system variables click on it then click on Edit button then click on new button and paste this JDK file loccation.

Setup java programming language in visual studio code

Then open Visual Studio Code and install Extension pack of java.

Setup java programming language in visual studio code

Install one more extension is Code Runner for easily run your java program.

Java setup is over now open one empty folder in vs code and create java project.

You can compile and run your java program using this command : 

  1.  Compile java program : javac Your_File_Name.java 
  2.  Run : java Your_File_Name

Post a Comment

0 Comments