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
Build Java development environment with VS Code on Mac
A record of setting up a Java development environment with Visual Studio Code
How to build 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
Java build with mac vs code
Build Java development environment (for Mac)
Build jooby development environment with Eclipse
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 application development with Visual Studio Code Spring Security usage 1/3 [Preparation]
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
Spring5 MVC Web application development with Visual Studio Code Maven template creation
Try remote debugging of Java with Remote Containers in Visual Studio Code Insiders
Experience .NET 5 with Docker and Visual Studio Code
Add --enable-preview option in Java in Visual Studio Code
[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
Try debugging a Java program with VS Code
[Mac] Install Java in Visual Studio Code (VS Code)
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)
Try to build a Java development environment using Docker
Java + Spring development environment construction with VirtualBox + Ubuntu (Xfce4)
Java development environment (Mac, Eclipse)
Build docker environment with WSL
I tried to create a java8 development environment with Chocolatey
Use Java included with Android Studio to build React Native
Build a "Spring Thorough Introduction" development environment with IntelliJ IDEA
[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)
Build Go development environment with WSL2 + Docker Desktop + VSCode (Remote --Containers)
[Eclipse Java] Development environment setting memo
Build Couchbase local environment with Docker
Build a Java project with Gradle
Build a Node.js environment with Docker
Code Java from Emacs with Eclim
Java Spring environment in vs Code