summarylogtreecommitdiffstats
path: root/greenfoot
blob: 54cff16df66f3e234a2a2f2b6a198caae83635d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
unset JFXPATH

if [ -e /usr/lib/jvm/java-17-openjfx/lib/javafx.base.jar ]; then
        JFXPATH=/usr/lib/jvm/java-17-openjfx/lib
else
        JFXPATH=/usr/lib/jvm/java-17-openjdk/lib
fi

CP="/opt/greenfoot/boot.jar"
JAVAFXJARS=`ls -1 $JFXPATH/javafx* | paste -sd ":" -`
CP="$CP:$JAVAFXJARS"

archlinux-java-run -a 17 -b 17 -- -Djavafx.embed.singleThread=true \
        -Dawt.useSystemAAFontSettings=on -Xmx512M \
        -cp "$CP" bluej.Boot \
        -greenfoot=true \
        -bluej.compiler.showunchecked=false \
        -greenfoot.url.javadoc=file:///usr/share/doc/greenfoot/API \
        "$@"