
The message comes from the XML extension ( redhat.vscode-xml). The message box in the lower right corner pops up showing “The JAVA_HOME environment variable points to a missing folder”.Īs you see on the screenshot in the console, the Java server has been successfully started. I didn’t change the JAVA_HOME, just opened VSCode through the terminal and then it started working.Īnyhow, I think it’s found now, except when I open the pom.xml from the project.
on Debian/Ubuntu, install openjdk-11-jdk with an additional jdk appendedĪctually, I didn’t set the JAVA_HOME by myself, but Homebrew did it for me during cask install. E.g many packages have confusing names, make sure you installed the correct one If no (most of the cases), try installing a JDK instead of JRE. installed java packages on your Linux distribution. If yes, report to us with detailed information. If you don’t have the command, install Java extension pack or follow the Setting the JDK to find out by your own.
Open command palette, run “Java: Configure Java Runtime”, to find out which java homedir is taking effect. bin/javac doesn’t exists under path of Java home folder, the extension recognizes it as a JRE instead of a JDK (which is required), thus prints this error message. Root causeīecause of the confusing name of packages, some Linux users actually installed a JRE (Java Runtime Environment) instead of a JDK (Java Development Kit).Īs.
Let me help to form a guide from most of above cases.