[Environment construction] Build a Java development environment with VS Code!
I tried to build a Java development environment with Visual Studio Code (VSCode).
Development environment
OS : Windows10
VSCode : Version 1.52.1
### procedure
-[JDK] Installation
-[Java Extension Pack] installation
--Pass the path to [JDK] in [Java.home]
## Install the JDK (Java SE Development Kit)!
Access [JDK15 Download Page](https://www.oracle.com/java/technologies/javase-jdk15-downloads.html)
Download ** [jdk-15.0.1_windows-x64_bin.exe] ** for Windows x64.
After that, follow the instructions on the screen and install with the default settings.
![2021-01-10_21h15_42.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/565881/f3c8c998-50c9-5e5d-a87e-d7a9cdd34a0a.png)
## Install the extension Java Extension Pack
Enter "Java Extension Pack" in the extension search and install.
![2021-01-10_21h38_40.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/565881/67d8ba1e-b0e2-a16f-c24a-137b7650ddfe.png)
## Write java.home and pass the path to JDK
** Open "VScode Settings" **
![2021-01-10_21h41_55.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/565881/44c72cdf-a181-f3cd-6c5a-af1a676a66b3.png)
Enter ** "java.home" ** in the search form
Click on the part that says ** [settings.json] **
![2021-01-10_21h42_36.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/565881/fef98144-2424-7590-ceae-7284714f65e1.png)
Since the json file can be opened, according to the installed version
Enter the path below.
{
"java.home": "C:/Program Files/Java/jdk-15.0.1",
}
This completes the settings.
Restart VSCode and the open environment construction is complete!
## reference
[Create a Java (debugging) development environment with Visual Studio Code](https://codeaid.jp/vscode-debug/)