blob: b8511d82b88795233f7d964a1ddf1f4b5b3ac216 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
JAVA_HOME=/usr/lib/jvm/java-17-openjdk
# Different JFX providers install to different locations
if [ -d "/usr/lib/jvm/java-17-openjfx" ]; then
JFX_PATH="/usr/lib/jvm/java-17-openjfx/lib"
else
JFX_PATH=$JAVA_HOME/lib
fi
# Solve incompatibilites with jrt.fs
"$JAVA_HOME/bin/java" --module-path "$JFX_PATH/javafx.base.jar:$JFX_PATH/javafx.controls.jar:$JFX_PATH/javafx.graphics.jar:$JFX_PATH/javafx.fxml.jar" --add-modules=javafx.base,javafx.graphics,javafx.controls,javafx.fxml -jar /usr/share/java/chunky/ChunkyLauncher.jar --launcher --noRetryJavafx --javaOptions "--module-path $JFX_PATH/javafx.base.jar:$JFX_PATH/javafx.controls.jar:$JFX_PATH/javafx.graphics.jar:$JFX_PATH/javafx.fxml.jar --add-modules=javafx.base,javafx.graphics,javafx.controls,javafx.fxml" "$@"
|