-
Notifications
You must be signed in to change notification settings - Fork 125
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Module java.sql not found #247
Comments
Same problem happening for me but for JDK17 |
Getting the same problem with OpenJDK 17 and OpenJDK 20, this is the error: Failed
◍ java-language-server
▼ Displaying full log
Cloning into '.'...
From https://github.com/georgewfraser/java-language-server
* tag v0.2.39 -> FETCH_HEAD
+ ./scripts/link_linux.sh
Error: Module java.sql not found
java.lang.module.FindException: Module java.sql not found
at java.base/java.lang.module.Resolver.findFail(Resolver.java:893)
at java.base/java.lang.module.Resolver.resolve(Resolver.java:129)
at java.base/java.lang.module.Configuration.resolve(Configuration.java:421)
at java.base/java.lang.module.Configuration.resolve(Configuration.java:255)
at jdk.jlink/jdk.tools.jlink.internal.Jlink$JlinkConfiguration.resolve(Jlink.java:217)
at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImageProvider(JlinkTask.java:536)
at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:424)
at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:276)
at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:55)
at jdk.jlink/jdk.tools.jlink.internal.Main.main(Main.java:33)
spawn: bash failed with exit code 1 and signal 0. but the module seems to be there: java --list-modules | grep java.sql@
java.sql@17.0.6
|
I'm running the latest (java 20) and getting the same error. |
You have to install e.g. openjdk17-jmods (on Void Linux) or search for similar Java Modules package on your distribution. |
Can confirm installing jmods fixes the issue with JDK 20 as well. |
Can also confirm on Fedora 39, installing |
I installed jmods for openjdk-latest, but that did not solve the issue. Installing jdk 17 + jmods did not solve the issue either. |
I tried to install this language server using Mason with JDK 19. When I did this the link_linux.sh script failed with "module java.sql not found". I upgraded to JDK 20 and that fixed the problem.
https://www.oracle.com/java/technologies/javase/jdk20-archive-downloads.html
The text was updated successfully, but these errors were encountered: