blob: 809b048f0ad58b9ad030c9151bcd5d10e065e16c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
BASEDIR=/usr/share/java/asciidocfx
for name in $BASEDIR/lib/*.jar; do
CP=$CP:$name
done
PATH_TO_FX=$BASEDIR/lib/java-openjfx
PATH_TO_JAVA=/usr/lib/jvm/java-17-openjdk/bin/java
exec $PATH_TO_JAVA \
-cp $CP \
-Duser.language=en \
-Duser.country=US \
-Dapp.name="asciidocfx" \
-Dapp.pid="$$" \
-Dapp.repo="$BASEDIR/lib" \
-Dapp.home="$BASEDIR" \
-Dbasedir="$BASEDIR" \
-Dfile.encoding=UTF-8 \
-Xms512M \
-Xmx1024M \
-Djava.awt.headless=false \
--module-path $PATH_TO_FX --add-modules javafx.controls,javafx.fxml,javafx.web \
--illegal-access=warn \
--add-opens javafx.base/com.sun.javafx.collections=javafx.web \
--add-opens javafx.controls/javafx.scene.control=ALL-UNNAMED \
com.kodedu.boot.AppStarter \
"$@"
|