datalevin icon indicating copy to clipboard operation
datalevin copied to clipboard

Make it work with jdk16 without having to permit illegal access

Open huahaiy opened this issue 4 years ago • 2 comments

Since JDK16, it is necessary to set "--illegal-access=permit" JVM option for LMDBJava to work. Maybe need to remove the dependency #35

huahaiy avatar Mar 30 '21 05:03 huahaiy

In JDK17, this --illegal-access option is removed, but add-opens still works.

huahaiy avatar Sep 23 '21 17:09 huahaiy

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

jdf-id-au avatar Apr 28 '22 16:04 jdf-id-au

This is resolved already.

huahaiy avatar Dec 29 '22 13:12 huahaiy