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

Commit c08bfba

Browse files
committed
small changes to alert messages
1 parent 5c76578 commit c08bfba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/universalJavaApplicationStub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ fi
211211
# display error message if MainClassName is empty
212212
if [ ${JVMMainClass} == "" ]; then
213213
# display error message with applescript
214-
osascript -e "tell application \"System Events\" to display dialog \"ERROR launching ${CFBundleName}!\n\nNo MainClassName 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)"
214+
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)"
215215
# exit with error
216216
exit 1
217217

@@ -246,7 +246,7 @@ elif [ -x "$JAVACMD" ]; then
246246
else
247247

248248
# display error message with applescript
249-
osascript -e "tell application \"System Events\" to display dialog \"ERROR launching ${CFBundleName}!\n\nYou need to have JAVA installed on your Mac!\nVisit http://java.com for more information...\" with title \"${CFBundleName}\" buttons {\" OK \"} default button 1 with icon path to resource \"${CFBundleIconFile}\" in bundle (path to me)"
249+
osascript -e "tell application \"System Events\" to display dialog \"ERROR launching '${CFBundleName}'!\n\nYou need to have JAVA installed on your Mac!\nVisit http://java.com for more information...\" with title \"${CFBundleName}\" buttons {\" OK \"} default button 1 with icon path to resource \"${CFBundleIconFile}\" in bundle (path to me)"
250250

251251
# and open java.com
252252
open http://java.com

0 commit comments

Comments
 (0)