1 #
   2 # Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # Translators please note do not translate the options themselves
  27 java.launcher.opt.header  =   Usage: {0} [options] class [args...]\n\
  28 \           (to execute a class)\n   or  {0} [options] -jar jarfile [args...]\n\
  29 \           (to execute a jar file)\n\
  30 \   or  {0} [options] -p <modulepath> -m <modulename>[/<mainclass>] [args...]\n\
  31 \           (to execute the main class in a module)\n\n\
  32 where options include:\n\n
  33 
  34 java.launcher.opt.datamodel  =\    -d{0}\t  Deprecated, will be removed in a future release\n
  35 java.launcher.opt.vmselect   =\    {0}\t  to select the "{1}" VM\n
  36 java.launcher.opt.hotspot    =\    {0}\t  is a synonym for the "{1}" VM  [deprecated]\n
  37 
  38 # Translators please note do not translate the options themselves
  39 java.launcher.opt.footer     =\    -cp <class search path of directories and zip/jar files>\n\
  40 \    -classpath <class search path of directories and zip/jar files>\n\
  41 \    --class-path <class search path of directories and zip/jar files>\n\
  42 \                  A {0} separated list of directories, JAR archives,\n\
  43 \                  and ZIP archives to search for class files.\n\
  44 \    -p <module path>\n\
  45 \    --module-path <module path>...\n\
  46 \                  A {0} separated list of directories, each directory\n\
  47 \                  is a directory of modules.\n\
  48 \    --upgrade-module-path <module path>...\n\
  49 \                  A {0} separated list of directories, each directory\n\
  50 \                  is a directory of modules that replace upgradeable\n\
  51 \                  modules in the runtime image\n\
  52 \    -m <module>[/<mainclass>]\n\
  53 \    --module <modulename>[/<mainclass>]\n\
  54 \                  the initial module to resolve, and the name of the main class\n\
  55 \                  to execute if not specified by the module\n\
  56 \    --add-modules <modulename>[,<modulename>...]\n\
  57 \                  root modules to resolve in addition to the initial module.\n\
  58 \                  <modulename> can also be ALL-DEFAULT, ALL-SYSTEM,\n\
  59 \                  ALL-MODULE-PATH.\n\
  60 \    --limit-modules <modulename>[,<modulename>...]\n\
  61 \                  limit the universe of observable modules\n\
  62 \    --list-modules [<modulename>[,<modulename>...]]\n\
  63 \                  list the observable modules and exit\n\
  64 \    --dry-run     create VM but do not execute main method.\n\
  65 \                  This --dry-run option may be useful for validating the\n\
  66 \                  command-line options such as the module system configuration.\n\
  67 \    -D<name>=<value>\n\
  68 \                  set a system property\n\
  69 \    -verbose:[class|gc|jni]\n\
  70 \                  enable verbose output\n\
  71 \    -version      print product version to the error stream and exit\n\
  72 \    --version     print product version to the output stream and exit\n\
  73 \    -showversion  print product version to the error stream and continue\n\
  74 \    --show-version\n\
  75 \                  print product version to the output stream and continue\n\
  76 \    -? -h -help\n\
  77 \                  print this help message to the error stream\n\
  78 \    --help        print this help message to the output stream\n\
  79 \    -X            print help on extra options to the error stream\n\
  80 \    --help-extra  print help on extra options to the output stream\n\
  81 \    -ea[:<packagename>...|:<classname>]\n\
  82 \    -enableassertions[:<packagename>...|:<classname>]\n\
  83 \                  enable assertions with specified granularity\n\
  84 \    -da[:<packagename>...|:<classname>]\n\
  85 \    -disableassertions[:<packagename>...|:<classname>]\n\
  86 \                  disable assertions with specified granularity\n\
  87 \    -esa | -enablesystemassertions\n\
  88 \                  enable system assertions\n\
  89 \    -dsa | -disablesystemassertions\n\
  90 \                  disable system assertions\n\
  91 \    -agentlib:<libname>[=<options>]\n\
  92 \                  load native agent library <libname>, e.g. -agentlib:jdwp\n\
  93 \                  see also -agentlib:jdwp=help\n\
  94 \    -agentpath:<pathname>[=<options>]\n\
  95 \                  load native agent library by full pathname\n\
  96 \    -javaagent:<jarpath>[=<options>]\n\
  97 \                  load Java programming language agent, see java.lang.instrument\n\
  98 \    -splash:<imagepath>\n\
  99 \                  show splash screen with specified image\n\
 100 \                  HiDPI scaled images are automatically supported and used\n\
 101 \                  if available. The unscaled image filename, e.g. image.ext,\n\
 102 \                  should always be passed as the argument to the -splash option.\n\
 103 \                  The most appropriate scaled image provided will be picked up\n\
 104 \                  automatically.\n\
 105 \                  See the SplashScreen API documentation for more information.\n\
 106 \    @<filepath>   read options from the specified file\n\n\
 107 \To specify an argument for a long option, you can use --<name>=<value> or\n\
 108 \--<name> <value>.\n
 109 
 110 # Translators please note do not translate the options themselves
 111 java.launcher.X.usage=\n\
 112 \    -Xbatch           disable background compilation\n\
 113 \    -Xbootclasspath/a:<directories and zip/jar files separated by {0}>\n\
 114 \                      append to end of bootstrap class path\n\
 115 \    -Xcheck:jni       perform additional checks for JNI functions\n\
 116 \    -Xcomp            forces compilation of methods on first invocation\n\
 117 \    -Xdebug           provided for backward compatibility\n\
 118 \    -Xdiag            show additional diagnostic messages\n\
 119 \    -Xdiag:resolver   show resolver diagnostic messages\n\
 120 \    -Xfuture          enable strictest checks, anticipating future default\n\
 121 \    -Xint             interpreted mode execution only\n\
 122 \    -Xinternalversion\n\
 123 \                      displays more detailed JVM version information than the\n\
 124 \                      -version option\n\
 125 \    -Xloggc:<file>    log GC status to a file with time stamps\n\
 126 \    -Xmixed           mixed mode execution (default)\n\
 127 \    -Xmn<size>        sets the initial and maximum size (in bytes) of the heap\n\
 128 \                      for the young generation (nursery)\n\
 129 \    -Xms<size>        set initial Java heap size\n\
 130 \    -Xmx<size>        set maximum Java heap size\n\
 131 \    -Xnoclassgc       disable class garbage collection\n\
 132 \    -Xprof            output cpu profiling data\n\
 133 \    -Xrs              reduce use of OS signals by Java/VM (see documentation)\n\
 134 \    -Xshare:auto      use shared class data if possible (default)\n\
 135 \    -Xshare:off       do not attempt to use shared class data\n\
 136 \    -Xshare:on        require using shared class data, otherwise fail.\n\
 137 \    -XshowSettings    show all settings and continue\n\
 138 \    -XshowSettings:all\n\
 139 \                      show all settings and continue\n\
 140 \    -XshowSettings:locale\n\
 141 \                      show all locale related settings and continue\n\
 142 \    -XshowSettings:properties\n\
 143 \                      show all property settings and continue\n\
 144 \    -XshowSettings:vm show all vm related settings and continue\n\
 145 \    -Xss<size>        set java thread stack size\n\
 146 \    -Xverify          sets the mode of the bytecode verifier\n\
 147 \    --add-reads <module>=<target-module>(,<target-module>)*\n\
 148 \                      updates <module> to read <target-module>, regardless\n\
 149 \                      of module declaration. \n\
 150 \                      <target-module> can be ALL-UNNAMED to read all unnamed\n\
 151 \                      modules.\n\
 152 \    --add-exports <module>/<package>=<target-module>(,<target-module>)*\n\
 153 \                      updates <module> to export <package> to <target-module>,\n\
 154 \                      regardless of module declaration.\n\
 155 \                      <target-module> can be ALL-UNNAMED to export to all\n\
 156 \                      unnamed modules.\n\
 157 \    --add-opens <module>/<package>=<target-module>(,<target-module>)*\n\
 158 \                      updates <module> to open <package> to\n\
 159 \                      <target-module>, regardless of module declaration.\n\
 160 \    --disable-@files  disable further argument file expansion\n\
 161 \    --patch-module <module>=<file>({0}<file>)*\n\
 162 \                      Override or augment a module with classes and resources\n\
 163 \                      in JAR files or directories.\n\n\
 164 These extra options are subject to change without notice.\n
 165 
 166 # Translators please note do not translate the options themselves
 167 java.launcher.X.macosx.usage=\
 168 \n\
 169 The following options are Mac OS X specific:\n\
 170 \    -XstartOnFirstThread\n\
 171 \                      run the main() method on the first (AppKit) thread\n\
 172 \    -Xdock:name=<application name>\n\
 173 \                      override default application name displayed in dock\n\
 174 \    -Xdock:icon=<path to icon file>\n\
 175 \                      override default icon displayed in dock\n\n
 176 
 177 java.launcher.cls.error1=\
 178     Error: Could not find or load main class {0}\n\
 179     Caused by: {1}: {2}
 180 java.launcher.cls.error2=\
 181     Error: Main method is not {0} in class {1}, please define the main method as:\n\
 182 \   public static void main(String[] args)
 183 java.launcher.cls.error3=\
 184     Error: Main method must return a value of type void in class {0}, please \n\
 185     define the main method as:\n\
 186 \   public static void main(String[] args)
 187 java.launcher.cls.error4=\
 188     Error: Main method not found in class {0}, please define the main method as:\n\
 189 \   public static void main(String[] args)\n\
 190     or a JavaFX application class must extend {1}
 191 java.launcher.cls.error5=\
 192     Error: JavaFX runtime components are missing, and are required to run this application
 193 java.launcher.cls.error6=\
 194     Error: LinkageError occurred while loading main class {0}\n\
 195     \t{1}
 196 java.launcher.jar.error1=\
 197     Error: An unexpected error occurred while trying to open file {0}
 198 java.launcher.jar.error2=manifest not found in {0}
 199 java.launcher.jar.error3=no main manifest attribute, in {0}
 200 java.launcher.init.error=initialization error
 201 java.launcher.javafx.error1=\
 202     Error: The JavaFX launchApplication method has the wrong signature, it\n\
 203     must be declared static and return a value of type void
 204 java.launcher.module.error1=\
 205     module {0} does not have a MainClass attribute, use -m <module>/<main-class>
 206 java.launcher.module.error2=\
 207     Error: Could not find or load main class {0} in module {1}
 208 java.launcher.module.error3=\
 209     Error: Unable to load main class {0} from module {1}\n\
 210     \t{2}
 211