You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The extension is not working with a different version #174
I confirmed that this is not an issue with the Eclipse JDT Language Server itself
What happened?
I want to use Zed as my main editor, to do so in my everyday work i need to switch between different java versions. In order to do so i've updated my settings.json that can be watched in the attachments.
Note that the file is in the following directory "AppData/Roaming/Zed/settings.json" settings.json
The LSP returns the following error:
`Language server jdtls:
from extension "Java" version 6.8.6: JDTLS requires at least Java version 21 to run. You can either specify a different JDK to use by configuring lsp.jdtls.settings.java_home to point to a different JDK, or set lsp.jdtls.settings.jdk_auto_download to true to let the extension automatically download one for you.`
What did you expect to happen?
As I read in the README this should work just fine even if there is a Java 17 version in my personal use case.
In the example configuration you provided, the version of Java available to the extension is Java 17. As I understand, you need to modify the Java version available in the path, but the extension requires a specific version.
The Java version you provide to the extension won’t affect your work because it’s only used to start the language server, which can then work with any Java versions.
@tartarughina Thanks for the response! I've changed the configuration and now the language server doesn't give this error message enymore. By reading the README i wasn't able to understand this, maybe it could be usefull to update it.
By default the extension will download and run the latest official version of JDTLS for you, but this requires Java version 21 to be available on your system via either the $JAVA_HOME environment variable or as a java(.exe) executable on your $PATH. If your project requires a lower Java version in the environment, you can specify a different JDK to use for running JDTLS via the java_home configuration option.
The README's entry sounds clear enough to me but we will keep in consideration your feedback.
Activity
tartarughina commentedon Jan 11, 2026
@MichelangeloDiGennaro, JDTLS requires Java 21 or later to function.
In the example configuration you provided, the version of Java available to the extension is Java 17. As I understand, you need to modify the Java version available in the path, but the extension requires a specific version.
The Java version you provide to the extension won’t affect your work because it’s only used to start the language server, which can then work with any Java versions.
MichelangeloDiGennaro commentedon Jan 12, 2026
@tartarughina Thanks for the response! I've changed the configuration and now the language server doesn't give this error message enymore. By reading the README i wasn't able to understand this, maybe it could be usefull to update it.
è bello vedere italiani qui!
tartarughina commentedon Jan 12, 2026
Thanks for sharing your point
The README's entry sounds clear enough to me but we will keep in consideration your feedback.
🇮🇹🍝