Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99628

Configure JDK in Visual Studio Code

$
0
0

My project is Maven-based. To execute the Maven-Tasks, a JDK (not just a JRE) ist necessary. I dont want to define the path to the JDK in environment variables (such as JAVA_HOME or JDK_HOME), because that affects other software too. So I set "java.home": "C:\Program Files\Java\jdk1.8.0_162\bin" in settings.json and Maven is happy. But VSC tells me "This path is not pointing to a JDK. Try remove the "bin" from the path.". But if I remove the \bin part, Maven complaints about only having a JRE, not a JDK. With \bin on the other side, code completion in the editors does not work anymore. Any suggestions?


Viewing all articles
Browse latest Browse all 99628

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>