Attempting to roll out native image and stuck getting ipv6 disabled #1244
Replies: 1 comment
-
Figured it out. You pass the java opts to the native image itself when you call it, so like app -Djava.xxx.yyy=VAL |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, in my operating environment I have to set JAVA_OPTS=-Djava.net.preferIPv4Stack=true to get signal-cli to run, so i run it from a small wrapper script to do that.
Now, how can I compile a native image with that setting baked in? I tried:
./gradlew -Djava.net.preferIPv4Stack=true nativeCompile
But no dice. Guessing that really has no effect on the image itself.
My other idea is try to set System.setProperty("java.net.preferIPv4Stack" , "true"); somewhere maybe? IDK, anybody got ideas or know how to do this the proper way?
Beta Was this translation helpful? Give feedback.
All reactions