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?
↧