summarylogtreecommitdiffstats
path: root/PlayOnLinux.sh
diff options
context:
space:
mode:
Diffstat (limited to 'PlayOnLinux.sh')
-rwxr-xr-xPlayOnLinux.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/PlayOnLinux.sh b/PlayOnLinux.sh
index 719c33efc08..c08a442ef13 100755
--- a/PlayOnLinux.sh
+++ b/PlayOnLinux.sh
@@ -3,10 +3,13 @@
POL_HOME=/opt/playonlinux5
CLASSPATH=${CLASSPATH}:$POL_HOME/lib/*
+# Allow either openjdk java or Oracle java to be used
+
if [[ $(archlinux-java get | cut -d "-" -f2) -ge 8 ]]; then
export JAVA_HOME=$(archlinux-java get)
else
export JAVA_HOME=$(ls /usr/lib/jvm/java-{8,9}-*/bin/javac 2>/dev/null | cut -d "/" -f-5 | head -1)
fi
+# Start PlayOnLinux
java -classpath "$CLASSPATH" com.playonlinux.javafx.JavaFXApplication "$@"