summarylogtreecommitdiffstats
path: root/bluej
blob: 98933a507a27f98a1421fd8b70af00994db472bf (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
#!/bin/sh
if [ -e /usr/lib/jvm/java-11-openjfx/lib ]; then
        JAVAFXPATH=/usr/lib/jvm/java-11-openjfx
else
        JAVAFXPATH=/usr/lib/jvm/java-11-openjdk
fi

CP="/opt/bluej/bluej.jar"
JAVAFXJARS="$JAVAFXPATH/lib/javafx.base.jar"
JAVAFXJARS="$JAVAFXJARS:$JAVAFXPATH/lib/javafx.controls.jar"
JAVAFXJARS="$JAVAFXJARS:$JAVAFXPATH/lib/javafx.fxml.jar"
JAVAFXJARS="$JAVAFXJARS:$JAVAFXPATH/lib/javafx.graphics.jar"
JAVAFXJARS="$JAVAFXJARS:$JAVAFXPATH/lib/javafx.media.jar"
JAVAFXJARS="$JAVAFXJARS:$JAVAFXPATH/lib/javafx.properties.jar"
JAVAFXJARS="$JAVAFXJARS:$JAVAFXPATH/lib/javafx.swing.jar"
JAVAFXJARS="$JAVAFXJARS:$JAVAFXPATH/lib/javafx.web.jar"
CP="$CP:$JAVAFXJARS"
JFXRTOPT="-javafxpath=$JAVAFXPATH"
JFXRTOPT2="-javafxjars=$JAVAFXJARS"

archlinux-java-run -a 11 -b 11 -- \
        -Djdk.gtk.version=2 \
        -Dawt.useSystemAAFontSettings=on -Xmx512M \
        -cp "$CP" bluej.Boot ${JFXRTOPT:+"$JFXRTOPT"} ${JFXRTOPT2:+"$JFXRTOPT2"} \
        "$@"