'Setting up vs code for Java Gradle Build Error

I set up jdt.ls.java.home propertie in settings and i chagned my JAVA_HOME environment variable propertly, but my Gradle is throwing out this error:Gradle Build Error There is also some sort of that error: secound error



Solution 1:[1]

You can specify a different java home to Gradle via User setting java.import.gradle.java.home.

jdt.ls.java.home is used to launch the Java Language Server, and the extension had embedded a JRE to start the Java Language Server. So it doesn't matter, you can remove it.

And what's the value of C:\Programe Files\Eclipse Adoptiu..? please make sure it's an executable java path.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Steven-MSFT