FS#72985 - [jdk-openjdk] Missing opens flags java.lang and java.nio
Attached to Project:
Arch Linux
Opened by Buovjaga (Buovjaga) - Sunday, 12 December 2021, 09:27 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:17 GMT
Opened by Buovjaga (Buovjaga) - Sunday, 12 December 2021, 09:27 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:17 GMT
|
Details
Trying to build a Bazel project fails with
java.lang.reflect.InaccessibleObjectException: Unable to make java.lang.String(byte[],byte) accessible: module java.base does not "opens java.lang" to unnamed module This happens both with openjdk 11 and 17. Another person reported it on SO and received an answer, which solved it for me: https://stackoverflow.com/questions/69494854/archlinux-cant-build-bazel-java-tutorial/69497608#69497608 |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:17 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/java-openjdk/issues/4
Saturday, 25 November 2023, 20:17 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/java-openjdk/issues/4
A couple of fixes here:
1. Set your JAVA_HOME environment variable to a supported JDK
2. Change the default JDK usng archlinux-java
https://wiki.archlinux.org/title/Java
Given that the bazel package already depends on jdk11-openjdk, I don't think that anymore could be done.