OpenLiberty / liberty-language-server

The Liberty Config Language Server provides language server features for Liberty server configuration files through any of the supported client IDEs.
Eclipse Public License 2.0
6 stars 12 forks source link

Why I see message "Liberty Config Language Server requires Java 17 for functionality" in VS Code? #156

Closed gasgithub closed 1 year ago

gasgithub commented 1 year ago

While running VS Code with latest Liberty Tools for Visual Studio Code installed, I'm seeing the following message:

The Liberty Config Language Server requires Java 17 for functionality. Please set 'xml.java.home' to point to Java 17 in VS Code settings or set the system JAVA_HOME environment variable to point to Java 17.

I'm not using Java 17 right now. How to configure Liberty Config LS to utilize Java 8 or 11?

I tried to set xml.java.home to point to Java 8 or 11 but it doesnt work.

Regards Gas

cherylking commented 1 year ago

@gasgithub Java 17 is required for all of Liberty Tools in the latest refresh made available in December 2022. There were multiple dependencies that required it. So that meant Liberty Tools requires it. Please note that your projects can still configure and run with Java 8 or 11. It's just the IDE itself that must run with Java 17.

cherylking commented 1 year ago

@gasgithub By the way, thank you for raising this issue, as it has made us aware of our lack of documentation for this requirement. We are updating the various GH repo documents as a result for all the Liberty Tools components.