[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/)

Recommended Posts

[Environment construction] Build a Java development environment with VS Code!
Build a Java development environment with VS Code
Build Java development environment with VS Code on Mac
Build Java development environment with WSL2 Docker VS Code
Java web application development environment construction with VS Code (struts2)
[Mac] VS Code development environment construction (Java, Gradle, Node.js)
Build Java program development environment with Visual Studio Code
Build WebAPP development environment with Java + Spring with Visual Studio Code
Build a PureScript development environment with Docker
Build a Wordpress development environment with Docker
java development environment construction
Until you build a Nuxt.js development environment with Docker and touch it with VS Code
[Note] A story about changing Java build tools with VS Code
Using Gradle with VS Code, build Java → run
[Win10] Build a JSF development environment with NetBeans
Build a development environment for Docker, java, vscode
Try debugging a Java program with VS Code
A record of setting up a Java development environment with Visual Studio Code
Introduction to Java development environment & Spring Boot application created with VS Code
Build VS Code + WSL + Java + Gradle environment from scratch
Build ruby debug environment with VS Code of Windows 10
Try to build a Java development environment using Docker
Java + Spring development environment construction with VirtualBox + Ubuntu (Xfce4)
Build a Node.js environment with Docker
Build a Tomcat 8.5 environment with Pleiades 4.8
Java Spring environment in vs Code
Prepare Java development environment with Atom
Build Java development environment (for Mac)
Build jooby development environment with Eclipse
I tried to create a java8 development environment with Chocolatey
Build a "Spring Thorough Introduction" development environment with IntelliJ IDEA
A memo to start Java programming with VS Code (2020-04 version)
Create a Java and JavaScript team development environment (gradle environment construction)
[Java development environment construction] Install OpenJDK 11 (Java 11) on macOS with Homebrew.
[Processing x Java] Construction of development environment
Laravel development environment construction with Docker (Mac)
[Java] Environment construction
Java environment construction
Java development environment
Let's create a Java development environment (updating)
Let me do VS Code Remote Development + Java development in Proxy environment
Build Java 8 development environment on AWS Cloud9
Build a development environment for Django + MySQL + nginx with Docker Compose
Steps to build a Ruby on Rails development environment with Vagrant
Build a simple Docker + Django development environment
[Be careful about changing the version of Xdebug! ] Create a development environment with Xdebug3 + docker + VS Code
Build a hot reload development environment with Docker-compose using Realize of Go
I tried to build a Firebase application development environment with Docker in 2020
[Copy and paste] Build a Laravel development environment with Docker Compose Part 2
How to build a Ruby on Rails development environment with Docker (Rails 6.x)
Build a local development environment for Rails tutorials with Docker (Rails 6 + PostgreSQL + Webpack)
[Copy and paste] Build a Laravel development environment with Docker Compose Participation
Build a bulletin board API with authentication and authorization with Rails 6 # 1 Environment construction
Build a development environment on AWS EC2 with CentOS7 + Nginx + pm2 + Nuxt.js
How to build a Ruby on Rails development environment with Docker (Rails 5.x)
Template: Build a Ruby / Rails development environment with a Docker container (Ubuntu version)
Create a java web application development environment with docker for mac part2
Template: Build a Ruby / Rails development environment with a Docker container (Mac version)
Build a development environment for Docker + Rails6 + Postgresql
Let's get started with Java-Create a development environment ②
Let's get started with Java-Create a development environment ①