I cant run VS Code encountering this issue: "Java 11 required, but not found. Might have compilation errors."
Can somone walk me through how to fix
I thought I have java downloaded I dont know what to do?
I cant run VS Code encountering this issue: "Java 11 required, but not found. Might have compilation errors."
Can somone walk me through how to fix
I thought I have java downloaded I dont know what to do?
2
Answers
Make sure you are installing a Java 11 JDK, and not a different version, since that’s what VS Code is asking for.
If you are on linux, there should be options to install older versions of java documented by your distribution. For example, on arch it would be
sudo pacman -S jdk11-openjdk
. If you are on RedHat, as indicated by your comment, it should besudo yum install java-11-openjdk
.On windows or mac, you should be able to find prebuilt binaries and installers online. Here is one link I found, and there are most likely others you can find online. Just make sure to select JDK 11 for whatever you use to install.
Make sure that JDK 11 or above has been installed on your machine, add the following settings to indicate your JDK path
java.jdt.ls.java.home:
You can also specify or install a new JDK in the following way