When I installed java11 to study kotlin, I was impatient because the java build I used to go through didn't work.
It can be used properly according to the environment variable JAVA_HOME.
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