Build Java program development environment with Visual Studio Code

Build Java program development environment with Visual Studio Code

In this article, I will explain how to build a Java program development environment using VS Code. The procedure is as follows.

1. JDK installation

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.

-How to install JDK on Windows

2. Extension installation

Open the extension search screen with Ctrl + Shift + x, search for and install the Java Extension Pack extension. image.png

3. Pass Java path with VS Code

Open the VScode settings screen with the Ctrl +, union key and enter Java.home image.png

Click Settings.json to extract the settings file java.home: Specify the JDK installation destination

image.png Save and close

4. Java project creation

Open the command palette in the order of display-> command palette in VS Code Shortcut key: Ctrl + Shift + P Type java: and select java: Create Java Project image.png Select No build tools image.png Select the project save destination image.png Enter the name of the project (here Hello World)-> ʻEnter` image.png image.png

A project named Hello World is created image.png

image.png

5. Project execution

Open ʻApp.javafrom the explorer on the left This is the class described in the automatically generated main method Compile the project by selectingRun-> Run without debugging` image.png

Hello, World! Is output to the console, isn't it?

This completes the Java development environment construction!

Recommended Posts

Build Java program development environment with Visual Studio Code
Build WebAPP development environment with Java + Spring with Visual Studio Code
Build a Java development environment with VS Code
A record of setting up a Java development environment with Visual Studio Code
Build Java development environment with WSL2 Docker VS Code
How to build Java development environment with VS Code
[Environment construction] Build a Java development environment with VS Code!
Prepare Java development environment with VS Code
Java in Visual Studio Code
Getting started with Java programs using Visual Studio Code
Why can I develop Java with Visual Studio Code?
Use PlantUML with Visual Studio Code
Prepare Java development environment with Atom
Java build with mac vs code
Build Java development environment (for Mac)
Java development environment (Mac, VS Code)
Java web application development environment construction with VS Code (struts2)
I tried "Visual Studio Code Installer for Java" which can create Java development environment immediately
Build a PureScript development environment with Docker
Java development environment
Build a Java development environment on Mac
Build Java 8 development environment on AWS Cloud9
Build a Wordpress development environment with Docker
[Oracle Cloud] Create a development environment for OCI Java SDK (Visual Studio Code, Maven, CentOS)
What I learned from doing Java work with Visual Studio Code
[Mac] Install Java in Visual Studio Code
Spring5 MVC Web application development with Visual Studio Code Environment construction (Installation of JDK11, Maven, Tomcat, Visual Studio Code)
Spring5 MVC Web App Development with Visual Studio Code Hello World Creation
Spring Boot2 Web application development with Visual Studio Code SQL Server connection
Spring5 MVC web application development with Visual Studio Code SQL Server connection
Spring Boot2 Web application development with Visual Studio Code Hello World creation
Try remote debugging of Java with Remote Containers in Visual Studio Code Insiders
Introduction to Java development environment & Spring Boot application created with VS Code
Experience .NET 5 with Docker and Visual Studio Code
Build a WordPress development environment quickly with Docker
[Java] Build Java development environment on Ubuntu & check execution
Build an E2E test environment with Selenium (Java)
Using Gradle with VS Code, build Java → run
[Win10] Build a JSF development environment with NetBeans
Build a development environment for Docker, java, vscode
[First team development ②] Build an environment with Docker
Try debugging a Java program with VS Code
[Mac] Install Java in Visual Studio Code (VS Code)
Java development environment memo
java development environment construction
Build Java with Wercker
Spring5 MVC Web application development with Visual Studio Code Spring Security usage 2/3 [Page creation 1/2]
Spring5 MVC Web application development with Visual Studio Code Spring Security usage 3/3 [Page creation 2/2]
Build VS Code + WSL + Java + Gradle environment from scratch
[Mac] VS Code development environment construction (Java, Gradle, Node.js)
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)
Until you build a Nuxt.js development environment with Docker and touch it with VS Code
Java development environment (Mac, Eclipse)
Build docker environment with WSL
I tried to create a java8 development environment with Chocolatey
How to build Rails, Postgres, ElasticSearch development environment with Docker
[Java development environment construction] Install OpenJDK 11 (Java 11) on macOS with Homebrew.
How to use PlantUML with Visual Studio Code (created on October 30, 2020)
[Eclipse Java] Development environment setting memo