Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 4dcbca4

Browse files
committed
use different non-zero exit codes
1 parent 99f2d7f commit 4dcbca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/universalJavaApplicationStub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ elif [ ! -z ${JVMVersion} ] && [ -x /usr/libexec/java_home ] ; then
225225
# display error message with applescript
226226
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)"
227227
# exit with error
228-
exit 1
228+
exit 3
229229
fi
230230

231231
# otherwise check "/usr/libexec/java_home" symlinks
@@ -256,7 +256,7 @@ if [ -z ${JVMMainClass} ]; then
256256
# display error message with applescript
257257
osascript -e "tell application \"System Events\" to display dialog \"ERROR launching '${CFBundleName}'!\n\n'MainClass' isn't specified!\nJava application cannot be started!\" with title \"${CFBundleName}\" buttons {\" OK \"} default button 1 with icon path to resource \"${CFBundleIconFile}\" in bundle (path to me)"
258258
# exit with error
259-
exit 1
259+
exit 2
260260

261261

262262
# check whether $JAVACMD is a file and executable

0 commit comments

Comments
 (0)