datalevin
datalevin copied to clipboard
Make it work with jdk16 without having to permit illegal access
Since JDK16, it is necessary to set "--illegal-access=permit" JVM option for LMDBJava to work. Maybe need to remove the dependency #35
In JDK17, this --illegal-access option is removed, but add-opens still works.
Using openjdk@17 from deps.edn needs the following within an alias (doesn't seem to work at toplevel!):
:jvm-opts ["--add-opens=java.base/java.nio=ALL-UNNAMED"
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED"]
Adapted from https://github.com/lmdbjava/lmdbjava/commit/5687bd61ff8de770800fa319b4b98a0f61a92b24 and oops just noticed your comment
This is resolved already.