Skip to content

Commit

Permalink
add java17 options to startapp.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Jul 4, 2022
1 parent a6ef362 commit 4f19b5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/rootfs/startapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ if [ -f /.dockerenv ]; then

fi

# Options required for reflective access in dynamic JVM languages like Groovy and Jython
JAVA17OPTS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.fs=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util.Properties=ALL-UNNAMED --add-opens java.base/java.util.Properties.defaults=ALL-UNNAMED"
# Old java options
JAVAOPTS="-Djava.net.preferIPv4Stack=false -Djava.library.path=${I2P}:${I2P}/lib -Di2p.dir.base=${I2P} -Di2p.dir.config=${HOME}/.i2p -DloggerFilenameOverride=logs/[email protected] -Xmx$JVM_XMX"

java -cp "${CLASSPATH}" ${JAVA_OPTS} net.i2p.router.RouterLaunch
Expand Down

0 comments on commit 4f19b5e

Please sign in to comment.