I saw this,
and clicked on it. It redirected me to the Red Hat site and made me download Red Hat Developer Studio, but as I said, I want it in Visual Studio Code. I did download the JDK, but what should I do next?
I saw this,
and clicked on it. It redirected me to the Red Hat site and made me download Red Hat Developer Studio, but as I said, I want it in Visual Studio Code. I did download the JDK, but what should I do next?
In case you are on the newest Visual Studio Code version:
Type in your Java path (don't forget to put the path in " "
).
In case you are on an older version of Visual Studio Code:
" "
).If you don't know your Java path, type in which java
in your terminal (on Windows, please note the right format, e.g., "java.home": "C:/Program Files/Java/jdk-11.0.2"
).
where java
returns with us.
"java.home": "C:/Program Files/Java/jdk-11.0.2"
to your settings.json
file? please make sure you have written it in correct format.
Shifting to Java 11 did the trick for me. That is the minimum version required to run the Language Support for Java extension.
After installation, open your settings.json
file with the following:
Then add this line:
"java.home": "/usr/lib/jvm/java-11-openjdk-amd64"
Don't forget a trailing comma if you add this setting before another.