Fork me on GitHub
#datalevin
<
2024-05-22
>
Sasha V. Bogdanov18:05:14

Hi everyone. How to pass necessary for Datalevin :jvm-opts to uberjar? Is it possible?

phronmophobic18:05:05

Hi, you'll probably get more help by posting this question in #C053AK3F9.

Sasha V. Bogdanov11:05:36

Maybe, but question is Datalevin related, because I mean exactly JVM options that are necessary to run Datalevn:

:jvm-opts ["--add-opens=java.base/java.nio=ALL-UNNAMED"
             "--add-opens=java.base/sun.nio.ch=ALL-UNNAMED"]

Huahai14:05:35

Try :uberjar profile of your project

Sasha V. Bogdanov14:05:27

This profile looks like affects only build-time opts, but not runtime

Huahai02:05:52

Well, they are jvm options, so it makes sense to be available only when one starts a jvm

Huahai02:05:48

Looks like these are unavoidable, won’t work even we put them in modules, for the Java base module options can only be set when jvm starts

👌 1