Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for newest version of JDK 20, 21? #458

Open
oscarvarto opened this issue Oct 9, 2023 · 4 comments
Open

Support for newest version of JDK 20, 21? #458

oscarvarto opened this issue Oct 9, 2023 · 4 comments

Comments

@oscarvarto
Copy link

Sorry if this is too soon. It seems that eclipse.jdtls already supports JDK 20

eclipse-jdtls/eclipse.jdt.ls#2898 (comment)

Will we have support for JDK 21 in emacs too?

@nithin-mk
Copy link

Right now, lsp-java is downloading an older version of eclipse-jdtls (1.23.0), which doesn't support Java 21. eclipse-jdtls 1.35.0 supports up to Java 22. Can we please get an updated release of lsp-java?

https://github.com/eclipse-jdtls/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request

@ArneBab
Copy link

ArneBab commented Jul 5, 2024

To download on Java 21, I also had to (setenv "MAVEN_OPTS" "--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED")

@nithin-mk
Copy link

@ArneBab In which file should I set those options?

@ArneBab
Copy link

ArneBab commented Jul 5, 2024

I just put that in my init.el into the use-package declaration of lsp-java. I don’t have it working correctly at the moment, though ⇒ more problems to solve. This change just enables downloading jdtls with modern Java installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants