summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhmcl-launch-script4
1 files changed, 2 insertions, 2 deletions
diff --git a/hmcl-launch-script b/hmcl-launch-script
index 3852ce4ccb41..4965eb61d605 100755
--- a/hmcl-launch-script
+++ b/hmcl-launch-script
@@ -6,6 +6,6 @@ if [[ "$1" != "-p" ]]; then
cd $WORKDIR
fi
-JAVA_HOME=/usr/lib/jvm/$(pacman -Ql java-openjfx | grep javafx | head -n 1 | cut -d / -f 5)
+JAVA_HOME=/usr/lib/jvm/$(pacman -Ql java-runtime | grep javafx | head -n 1 | cut -d / -f 5)
-exec "${JAVA_HOME}"/bin/java -jar /usr/share/java/hmcl-bin/hmcl-bin.jar "$@"
+exec java -jar /usr/share/java/hmcl-bin/hmcl-bin.jar "$@"