vscode-java: Unable to find JDK 8, it exists, eclipse has no issue, path is correct
I’ve explicitly set "java.home": "/usr/lib/jvm/java-8-openjdk-amd64"
however the JAVA_HOME env variable is also set to exactly that (the result is the same regardless), eclipse has no issue with this, however the extension reports “The java.home variable defined in VS Code settings does not point to a JDK.”
Environment
- Operating System: Ubuntu 15.04
- JDK version: OpenJDK 8
- Visual Studio Code version: 1.9.1
- Java extension version: 0.0.10
Current Result
JDK 8 is not found
Expected Result
JDK 8 is found
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (4 by maintainers)
@attiand can you try the following:
or
I removed Oracle JDK 8 and update-alternatives uses
/usr/lib/jvm/java-11-openjdk-amd64
, then it works. 😕I’ve also got the problem.
Operating System: Ubuntu 18.04 LTS JDK version: OpenJDK 11 Visual Studio Code version: 1.26.1 Java extension version: 0.29.0 JAVA_HOME=“/usr/lib/jvm/java-11-openjdk-amd64”
The JAVA_HOME environment variable does not point to a JDK.
@akurtakov does it look like your issue?
@fbricon the exception is:
@snjeza I added the following
which prints (note the last line which I have drwx------ access to):
The following ordinary javascript:
prints:
@Coderah @AriHrannar please give 0.1.0 a try, and if the problem still persists, open the VS Code Developer Tools to see why the extension fails to start.