0

I'm always getting this error message in VSCode from this XML extension

The thing is that I've already installed JRE8, JDK8 and JDK11 from Oracle.

When I type java -version in CMD I get this

How can this one be solved out?

P.S. VSCode version is the latest available. System: Windows 10 Pro, latest available updates.

denis1532
  • 1
  • 1
  • 1
    Have you read the "Requirements" section on the plugin description: https://marketplace.visualstudio.com/items?itemName=redhat.vscode-xml It contains some actions you have to perform. Note: because Oracle Java is no longer free for commercial use you may want to use AdoptOpenJDK or a different OpenJDK variant instead. For example OpenJDK installer has the option to set JAVA_HOME variable. – Robert Jan 08 '21 at 11:11
  • probbly by adding your java 11 /bin folder to system PATH variable. Or setting new JAVA_HOME variable. One of those should work – mlecz Jan 08 '21 at 11:11
  • Robert, yeah, I've read the requirements, installed everything I need (as I wrote in the question description), but still got this error. What about AdoptOpenJDK - I'll try this in case nothing works with Oracle, cause for my preferences I need Oracle now. – denis1532 Jan 08 '21 at 11:30
  • mlecz, Tried setting new JAVA_HOME variable, ended up like this - `The JAVA_HOME environment variable does not point to a Java runtime.` – denis1532 Jan 08 '21 at 11:34
  • BTW, as of vscode-xml 0.15.0, Java is no longer required to run. – Fred Bricon Mar 03 '21 at 11:13

1 Answers1

0

The problem was solved by adding C:\Program Files\Java\jdk-11.0.9 for JAVA_HOME variable.

denis1532
  • 1
  • 1