I tried "Visual Studio Code Installer for Java" which can create Java development environment immediately

Publickey released "Visual Studio Code Installer for Java" that installs the entire development environment of Microsoft and Java. VSCode, JDK, test runner, debugger, dependency viewer, IntelliCode, etc. " has been published, so try it immediately. Saw.

Click here for Microsoft's original article. 「Announcing the Visual Studio Code Installer for Java」

Confirmation environment

I set up a VM on Microsoft Azure and tried it in a clean environment.

Windows 10 Pro 1809 64bit

I made the OS above and put only the Japanese language package.

Install Visual Studio Code Installer for Java

The installer could be dropped from the link (frame part) below on the blog. If you want to drop it directly, please visit http://aka.ms/vscode-java-installer-win. 2019-06-17_20h49_18.png

The file "VSCodeJavaInstaller-online-win-0.1.0.exe" has been downloaded. 2019-06-17_20h59_18.png

When executed, the license confirmation screen will be displayed. The JDK distribution is AdoptOpenJDK. Press "Next". 2019-06-17_20h34_14.png

It seems to display the current installation status. This time I prepared a clean VM, so neither JDK nor VS Code is included. Press "Install". 2019-06-17_20h34_26.png

The installation will start. AdoptOpenJDK 8u212b4 seems to contain hotspot stuff. VS Code's Java Extension already supports JDK 12, so it would be great if you could choose it. 2019-06-17_20h34_39.png

The installation is complete. 2019-06-17_20h36_22.png

Since VSCode started, when I looked at the extension, it was as follows. 2019-06-17_20h37_03.png

Contains a total of 7 pieces. Is it troublesome without using the installer? You might think, but if you just put Java Extension Pack 0.7.1, the other 6 will be automatic. The installation of the extension itself isn't a big deal, as it's on target.

I launched the VS Code console and checked the Java version. 2019-06-17_20h41_54.png

The Java development environment was easily set up like this. Speaking of greed, I want you to include Maven ...

After downloading Maven and passing the path to bin, type maven in the command palette and select "Maven: Generate from Maven Archetype". 2019-06-17_21h12_48.png

Here, I chose "archetype-quickstart-jdk8". 2019-06-17_21h18_22.png

After that, enter the groupId and artifactId and press "Y" at the end. 2019-06-17_21h14_32.png

Once the Maven project is created, open it in VS Code. Select App.java. 2019-06-17_21h20_00.png

After a while, "Run" is displayed above the main method, so press it. 2019-06-17_21h15_56.png

It was done! 2019-06-17_21h16_26.png

It's easy. Just the other day, in order to try AdoptOpenJDK 12, I created a VM in Azure and installed it in the same way, but it seems that the trouble of dropping the JDK and adding extensions will be reduced. I don't think there is a big difference once you get used to it (^^;

I tried Adopt OpenJDK 12 with Visual Studio Code (Windows) https://kikutaro777.hatenablog.com/entry/2019/06/06/235124

Recommended Posts

I tried "Visual Studio Code Installer for Java" which can create Java development environment immediately
[Oracle Cloud] Create a development environment for OCI Java SDK (Visual Studio Code, Maven, CentOS)
Why can I develop Java with Visual Studio Code?
Build Java program development environment with Visual Studio Code
I tried to create a java8 development environment with Chocolatey
Build WebAPP development environment with Java + Spring with Visual Studio Code
A record of setting up a Java development environment with Visual Studio Code
Java in Visual Studio Code
I tried Heroku, which can publish web applications for free
I tried to create a padrino development environment with Docker
I tried to create a Spring MVC development environment on Mac
Build Java development environment (for Mac)
What I learned from doing Java work with Visual Studio Code
Java development environment (Mac, VS Code)
Create a java web application development environment with docker for mac part2
Prepare Java development environment with VS Code
I tried Cassandra's Object Mapper for Java
Sample code collection for Azure Java development
Let's create a Java development environment (updating)
[Mac] Install Java in Visual Studio Code
[Azure] I tried to create a Java application for free-Web App creation- [Beginner]
Add --enable-preview option in Java in Visual Studio Code
I tried to create Alexa skill in Java
Build a development environment for Docker, java, vscode
[Mac] Install Java in Visual Studio Code (VS Code)
Build a Java development environment with VS Code
[Azure] I tried to create a Java application for free ~ Connect with FTP ~ [Beginner]
Java development environment
Create a Java development environment using jenv on Mac
Build Java development environment with VS Code on Mac
Getting started with Java programs using Visual Studio Code
I couldn't type Japanese in Ubuntu20.04 + Visual Studio Code
[Mac] VS Code development environment construction (Java, Gradle, Node.js)
I tried to create a Clova skill in Java
I tried calling Java / Objective-C native code from Flutter
Build Java development environment with WSL2 Docker VS Code
How to build Java development environment with VS Code
I tried using an extended for statement in Java
Create a Java, JavaScript team development environment (problem raising)
[Environment construction] Build a Java development environment with VS Code!