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

Commit 8ac883e

Browse files
committed
Send to java.com when the version of Java installed is too old / fixes #29
1 parent ff5b7fe commit 8ac883e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ ChangeLog
22
---------
33

44
### v1.1.0 (Work-In-Progress)
5-
* Improve the version of Java reported in the error messages (fixes #28)
5+
* Improve the version of Java reported in the error messages (fixes #28)
6+
* Send to java.com when the version of Java installed is too old (fixes #29)
67

78

89
### v1.0.1 (2015-11-02)

src/universalJavaApplicationStub

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,10 @@ elif [ ! -z ${JVMVersion} ] ; then
323323
# display human readable java version (#28)
324324
java_version_hr=`echo ${JVMVersion} | sed -E 's/[0-9]\.([0-9+*]+)/\1/g' | sed 's/+/ or later/' | sed 's/*/ (latest update)/'`
325325
# display error message with applescript
326-
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 ${java_version_hr}\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)"
327-
# exit with error
326+
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 ${java_version_hr}\nMake sure you install the required Java version.\" with title \"${CFBundleName}\" buttons {\" OK \", \"Visit java.com\"} default button \"Visit java.com\" with icon path to resource \"${CFBundleIconFile}\" in bundle (path to me)" \
327+
-e "set response to button returned of the result" \
328+
-e "if response is \"Visit java.com\" then open location \"http://java.com\""
329+
# exit with error
328330
exit 3
329331
fi
330332

0 commit comments

Comments
 (0)