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

Commit 80dd00c

Browse files
committed
Update README.md
1 parent b28a247 commit 80dd00c

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,19 @@ The shell script reads JVM properties from `Info.plist` regardless of which form
4343
# - main class
4444
# - JVM arguments
4545
exec "$JAVACMD" \
46-
-cp "${JVMClasspath}" \
47-
-Xdock:icon="$PROGDIR/../Resources/${CFBundleIconFile}" \
46+
-cp "${JavaFolder}/*" \
47+
-Xdock:icon="${ResourcesFolder}/${CFBundleIconFile}" \
4848
-Xdock:name="${CFBundleName}" \
49-
${JVMOptions:+"$JVMOptions" }\
50-
${JVMDefaultOptions:+"$JVMDefaultOptions" }\
51-
"${JVMMainClass}"\
52-
${JVMArguments:+"$JVMArguments"}
49+
${JVMOptions:+$JVMOptions }\
50+
${JVMDefaultOptions:+$JVMDefaultOptions }\
51+
${JVMMainClass}\
52+
${JVMArguments:+ $JVMArguments"}
5353
```
5454
5555
It sets the classpath, the dock icon, the *AboutMenuName* (in Xdock style) and then every *JVMOptions*, *JVMDefaultOptions* or *JVMArguments* found in the `Info.plist` file.
5656
57+
The WorkingDirectory is either retrieved from Apple's `Info.plist` key `Java/WorkingDirectory` or set to the JavaRoot directory within the app bundle.
58+
5759
The name of the *main class* is also retrieved from `Info.plist`. If no *main class* could be found, an applescript error dialog is shown and the script exits with *exit code 1*.
5860
5961
Also, there is some *foo* happening to determine which Java version is installed. Here's the list in which order system properties are checked:

0 commit comments

Comments
 (0)