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

Unable to make field long java.nio.Buffer.address accessible error #3

Open
mprokopov opened this issue Oct 28, 2023 · 1 comment
Open

Comments

@mprokopov
Copy link

I wanted to give a try to this wonderful tool on my MacBook Pro with M2 using Java 21

openjdk version "21" 2023-09-19
OpenJDK Runtime Environment Homebrew (build 21)
OpenJDK 64-Bit Server VM Homebrew (build 21, mixed mode, sharing)

My deps.edn looks like this

{:deps { lumberdev/tesserae {:git/url "https://github.com/lumberdev/tesserae"
                             :sha     "fcfabb928a44ba72b56c091725c3b564614eca91"} }}

It gives me the following error output

Library extraction is successful: /var/folders/wh/5kbm5w116fv7z4k9jypwh00w0000gp/T/lmdbjava-native-lib-b3ee26d9-0bb2-4a7c-a209-0608feda14c7/liblmdb.dylib with size 98986
Tesserae booting up...
CLI Opts: {:port 3900}
Execution error (InaccessibleObjectException) at java.lang.reflect.AccessibleObject/throwInaccessibleObjectException (AccessibleObject.java:391).
Unable to make field long java.nio.Buffer.address accessible: module java.base does not "opens java.nio" to unnamed module @52f877ca

Stack Overflow recommends adding --add-opens=java.base/java.nio=ALL-UNNAMED to Java args.

@nwestallen
Copy link

I'm having the same issue on an M1 MacBook Air, also using Java 21:

openjdk 21 2023-09-19
OpenJDK Runtime Environment Zulu21.28+85-CA (build 21+35)
OpenJDK 64-Bit Server VM Zulu21.28+85-CA (build 21+35, mixed mode, sharing)

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

2 participants