The story that I could not build after installing multiple Java on Windows

Introduction

When I installed java11 to study kotlin, I was impatient because the java build I used to go through didn't work.

How to use JAVA properly

It can be used properly according to the environment variable JAVA_HOME.

Use environment variables properly with VSCODE

Place the following files in your project's .vscode folder.

settings.json


{
        "terminal.integrated.env.windows": {
            "JAVA_HOME": "C:\\Program Files\\Java\\jdk1.8.0_211"
        }
}

This project is now dedicated to java8.

It is also valid for tasks.

If you are not using Windows, set the last windows to something else.

If environment variables don't work, you may want to docker.

Recommended Posts

The story that I could not build after installing multiple Java on Windows
The story that the Servlet could not be loaded in the Java Web application
The story that the forced update could not be implemented
After verifying the Monty Hall problem with Ruby, a story that I could understand well and did not understand well
The story that did not disappear when I tried to delete mysql on ubuntu
Solved the problem that apt-get update could not be executed on Ubuntu (Virtual Box) on Windows.
The story that the build error did not stop when using Eclipse 2020
I can't use SQS that can read the questionnaire with a scanner → I could use it after changing the java ver
The story that Java security settings change depending on the encryption policy on RHEL / CentOS
I didn't know that inner classes could be defined in the [Java] interface
ValidationMessages.properties should not be multiple on the classpath
I touched on the new features of Java 15
Solved the problem that profile and logout were not displayed on the screen after signup.
Notes on errors that occur when installing the JDK and countermeasures that I have tried
The story that the variable initialization method called in the Java constructor should not be overridden
A story that I had a hard time trying to build PHP 7.4 on GCE's CentOS 8
I couldn't run it after upgrading the Java version
The story that .java is also built in Unity 2018
The story that the request parameter from the iPhone application could not be obtained successfully with the Servlet
[Java] I tried to make a rock-paper-scissors game that beginners can run on the console.
Could not build module'nanopb'
The case that @Autowired could not be used in JUnit5
20190803_Java & k8s on Azure The story of going to the festival
How to solve the problem that the website image is not displayed after deploying to heroku on Rails 5
After conducting a Jersey API test, I encountered a phenomenon where the JSR310 API could not be deserialized.
[Note error] An error that the host PC cannot access the CentOS file on Virtual PC after installing samba.