In this article, I will explain how to build a Java program development environment using VS Code. The procedure is as follows.
If you already have a JDK on your device, go to 2. Those other than the above After installing the JDK as described in the following article, go to 2.
Open the extension search screen with
Ctrl + Shift + x, search for and install the
Java Extension Pack extension.
Open the VScode settings screen with the
Ctrl +, union key and enter
Settings.json to extract the settings file
java.home: Specify the JDK installation destination
Save and close
Open the command palette in the order of
command palette in VS Code
Shortcut key: Ctrl + Shift + P
java: and select
java: Create Java Project
No build tools
Select the project save destination
Enter the name of the project (here
Hello World)-> ʻEnter`
A project named
Hello World is created
from the explorer on the left This is the class described in the automatically generated main method Compile the project by selectingRun
-> Run without debugging`
Hello, World! Is output to the console, isn't it?
This completes the Java development environment construction!