First of all download JDK(Java Development Kit) in your operating system.
Download
: JDK (Java Development Kit)
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.
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.
Then open Visual Studio Code and install Extension pack of java.
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 :
- Compile java program : javac Your_File_Name.java
- Run : java Your_File_Name
0 Comments
Enter Your Comment