From 7fb855932f5221ff1ebefca2700ba628cb60b42f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E5=86=9B=E6=96=87?= Date: Sat, 26 Dec 2020 11:43:57 +0800 Subject: [PATCH] fixed:JD-GUI not start on MaxOs Big Sur --- src/osx/resources/universalJavaApplicationStub.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osx/resources/universalJavaApplicationStub.sh b/src/osx/resources/universalJavaApplicationStub.sh index 686db22d..7c3fe005 100644 --- a/src/osx/resources/universalJavaApplicationStub.sh +++ b/src/osx/resources/universalJavaApplicationStub.sh @@ -228,8 +228,8 @@ if [ -n "$JAVA_HOME" ] ; then # check for specified JVMversion in "/usr/libexec/java_home" symlinks elif [ ! -z ${JVMVersion} ] && [ -x /usr/libexec/java_home ] && /usr/libexec/java_home -F; then - if /usr/libexec/java_home -F -v ${JVMVersion}; then - JAVACMD="`/usr/libexec/java_home -F -v ${JVMVersion} 2> /dev/null`/bin/java" + if /usr/libexec/java_home -v ${JVMVersion}; then + JAVACMD="`/usr/libexec/java_home -v ${JVMVersion} 2> /dev/null`/bin/java" else # display error message with applescript osascript -e "tell application \"System Events\" to display dialog \"ERROR launching '${CFBundleName}'\n\nNo suitable Java version found on your system!\nThis program requires Java ${JVMVersion}\nMake sure you install the required Java version.\" with title \"${CFBundleName}\" buttons {\" OK \"} default button 1 with icon path to resource \"${CFBundleIconFile}\" in bundle (path to me)"