SUGGESTED FIX
--- old/src/share/classes/sun/launcher/LauncherHelper.java 2012-01-20 16:21:59.000000000 +0400
+++ new/src/share/classes/sun/launcher/LauncherHelper.java 2012-01-20 16:21:58.000000000 +0400
@@ -381,6 +381,10 @@
PrintStream ostream = (printToStderr) ? System.err : System.out;
ostream.println(getLocalizedMessage("java.launcher.X.usage",
File.pathSeparator));
+ if (System.getProperty("os.name").startsWith("Mac OS")) {
+ ostream.println(getLocalizedMessage("java.launcher.X.macosx.usage",
+ File.pathSeparator));
+ }
}
static String getMainClassFromJar(PrintStream ostream, String jarname) {
--- old/src/share/classes/sun/launcher/resources/launcher.properties 2012-01-20 16:22:00.000000000 +0400
+++ new/src/share/classes/sun/launcher/resources/launcher.properties 2012-01-20 16:21:59.000000000 +0400
@@ -109,6 +109,17 @@
\ show all locale related settings and continue\n\n\
The -X options are non-standard and subject to change without notice.\n
+# Translators please note do not translate the options themselves
+java.launcher.X.macosx.usage=\
+\n\
+The following options are Mac OS X specific:\n\
+\ -XstartOnFirstThread\n\
+\ run the main() method on the first (AppKit) thread\n\
+\ -Xdock:name=<application name>"\n\
+\ override default application name displayed in dock\n\
+\ -Xdock:icon=<path to icon file>\n\
+\ override default icon displayed in dock\n\n
+
java.launcher.cls.error1=\
Error: Could not find or load main class {0}
java.launcher.cls.error2=\
|