You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,15 @@ Supported PList keys
162
162
163
163
164
164
165
+
Logging
166
+
-------
167
+
168
+
Starting with version 2.2.0 `universalJavaApplicationStub` logs data to the `syslog` which can be easily accessed with the `Console.app` utility by searching for *syslog*:
169
+
170
+

java_version_hr=`echo ${JVMVersion}| sed -E 's/[0-9]\.([0-9+*]+)/ \1/g'| sed "s/+/ ${MSG_JAVA_VERSION_OR_LATER}/"| sed "s/*/ ${MSG_JAVA_VERSION_LATEST}/"`
osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_NO_SUITABLE_JAVA}${java_version_hr}.\n${MSG_NO_SUITABLE_JAVA_CHECK}\" with title \"${CFBundleName}\" buttons {\" OK \", \"${MSG_VISIT_JAVA_DOT_COM}\"} default button \"${MSG_VISIT_JAVA_DOT_COM}\" with icon path to resource \"${CFBundleIconFile}\" in bundle (path to me)" \
435
456
-e "set response to button returned of the result" \
# but this would prompt to install deprecated Apple Java 6
473
499
@@ -479,6 +505,8 @@ fi
479
505
480
506
# display error message if MainClassName is empty
481
507
if [ -z${JVMMainClass} ];then
508
+
# log exit cause
509
+
stubLogger "[EXIT 2] ${MSG_MISSING_MAINCLASS}"
482
510
# display error message with applescript
483
511
osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_MISSING_MAINCLASS}\" with title \"${CFBundleName}\" buttons {\" OK \"} default button 1 with icon path to resource \"${CFBundleIconFile}\" in bundle (path to me)"
osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_INSTALL_JAVA}\" with title \"${CFBundleName}\" buttons {\"${MSG_LATER}\", \"${MSG_VISIT_JAVA_DOT_COM}\"} default button \"${MSG_VISIT_JAVA_DOT_COM}\" with icon path to resource \"${CFBundleIconFile}\" in bundle (path to me)" \
529
561
-e "set response to button returned of the result" \
0 commit comments