src/java.base/share/classes/sun/launcher/resources/launcher.properties
changeset 47216 71c04702a3d5
parent 47122 09e99b01bb6e
child 48902 dfa46cfe5634
equal deleted inserted replaced
47215:4ebc2e2fb97c 47216:71c04702a3d5
       
     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] <mainclass> [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] -m <module>[/<mainclass>] [args...]\n\
       
    31 \       {0} [options] --module <module>[/<mainclass>] [args...]\n\
       
    32 \           (to execute the main class in a module)\n\n\
       
    33 \ Arguments following the main class, -jar <jarfile>, -m or --module\n\
       
    34 \ <module>/<mainclass> are passed as the arguments to main class.\n\n\
       
    35 \ where options include:\n\n
       
    36 
       
    37 java.launcher.opt.vmselect   =\    {0}\t  to select the "{1}" VM\n
       
    38 java.launcher.opt.hotspot    =\    {0}\t  is a synonym for the "{1}" VM  [deprecated]\n
       
    39 
       
    40 # Translators please note do not translate the options themselves
       
    41 java.launcher.opt.footer = \
       
    42 \    -cp <class search path of directories and zip/jar files>\n\
       
    43 \    -classpath <class search path of directories and zip/jar files>\n\
       
    44 \    --class-path <class search path of directories and zip/jar files>\n\
       
    45 \                  A {0} separated list of directories, JAR archives,\n\
       
    46 \                  and ZIP archives to search for class files.\n\
       
    47 \    -p <module path>\n\
       
    48 \    --module-path <module path>...\n\
       
    49 \                  A {0} separated list of directories, each directory\n\
       
    50 \                  is a directory of modules.\n\
       
    51 \    --upgrade-module-path <module path>...\n\
       
    52 \                  A {0} separated list of directories, each directory\n\
       
    53 \                  is a directory of modules that replace upgradeable\n\
       
    54 \                  modules in the runtime image\n\
       
    55 \    --add-modules <module name>[,<module name>...]\n\
       
    56 \                  root modules to resolve in addition to the initial module.\n\
       
    57 \                  <module name> can also be ALL-DEFAULT, ALL-SYSTEM,\n\
       
    58 \                  ALL-MODULE-PATH.\n\
       
    59 \    --list-modules\n\
       
    60 \                  list observable modules and exit\n\
       
    61 \    -d <module name>\n\
       
    62 \    --describe-module <module name>\n\
       
    63 \                  describe a module and exit\n\
       
    64 \    --dry-run     create VM and load main class but do not execute main method.\n\
       
    65 \                  The --dry-run option may be useful for validating the\n\
       
    66 \                  command-line options such as the module system configuration.\n\
       
    67 \    --validate-modules\n\
       
    68 \                  validate all modules and exit\n\
       
    69 \                  The --validate-modules option may be useful for finding\n\
       
    70 \                  conflicts and other errors with modules on the module path.\n\
       
    71 \    -D<name>=<value>\n\
       
    72 \                  set a system property\n\
       
    73 \    -verbose:[class|module|gc|jni]\n\
       
    74 \                  enable verbose output\n\
       
    75 \    -version      print product version to the error stream and exit\n\
       
    76 \    --version     print product version to the output stream and exit\n\
       
    77 \    -showversion  print product version to the error stream and continue\n\
       
    78 \    --show-version\n\
       
    79 \                  print product version to the output stream and continue\n\
       
    80 \    --show-module-resolution\n\
       
    81 \                  show module resolution output during startup\n\
       
    82 \    -? -h -help\n\
       
    83 \                  print this help message to the error stream\n\
       
    84 \    --help        print this help message to the output stream\n\
       
    85 \    -X            print help on extra options to the error stream\n\
       
    86 \    --help-extra  print help on extra options to the output stream\n\
       
    87 \    -ea[:<packagename>...|:<classname>]\n\
       
    88 \    -enableassertions[:<packagename>...|:<classname>]\n\
       
    89 \                  enable assertions with specified granularity\n\
       
    90 \    -da[:<packagename>...|:<classname>]\n\
       
    91 \    -disableassertions[:<packagename>...|:<classname>]\n\
       
    92 \                  disable assertions with specified granularity\n\
       
    93 \    -esa | -enablesystemassertions\n\
       
    94 \                  enable system assertions\n\
       
    95 \    -dsa | -disablesystemassertions\n\
       
    96 \                  disable system assertions\n\
       
    97 \    -agentlib:<libname>[=<options>]\n\
       
    98 \                  load native agent library <libname>, e.g. -agentlib:jdwp\n\
       
    99 \                  see also -agentlib:jdwp=help\n\
       
   100 \    -agentpath:<pathname>[=<options>]\n\
       
   101 \                  load native agent library by full pathname\n\
       
   102 \    -javaagent:<jarpath>[=<options>]\n\
       
   103 \                  load Java programming language agent, see java.lang.instrument\n\
       
   104 \    -splash:<imagepath>\n\
       
   105 \                  show splash screen with specified image\n\
       
   106 \                  HiDPI scaled images are automatically supported and used\n\
       
   107 \                  if available. The unscaled image filename, e.g. image.ext,\n\
       
   108 \                  should always be passed as the argument to the -splash option.\n\
       
   109 \                  The most appropriate scaled image provided will be picked up\n\
       
   110 \                  automatically.\n\
       
   111 \                  See the SplashScreen API documentation for more information\n\
       
   112 \    @argument files\n\
       
   113 \                  one or more argument files containing options\n\
       
   114 \    -disable-@files\n\
       
   115 \                  prevent further argument file expansion\n\
       
   116 \To specify an argument for a long option, you can use --<name>=<value> or\n\
       
   117 \--<name> <value>.\n
       
   118 
       
   119 # Translators please note do not translate the options themselves
       
   120 java.launcher.X.usage=\n\
       
   121 \    -Xbatch           disable background compilation\n\
       
   122 \    -Xbootclasspath/a:<directories and zip/jar files separated by {0}>\n\
       
   123 \                      append to end of bootstrap class path\n\
       
   124 \    -Xcheck:jni       perform additional checks for JNI functions\n\
       
   125 \    -Xcomp            forces compilation of methods on first invocation\n\
       
   126 \    -Xdebug           provided for backward compatibility\n\
       
   127 \    -Xdiag            show additional diagnostic messages\n\
       
   128 \    -Xfuture          enable strictest checks, anticipating future default\n\
       
   129 \    -Xint             interpreted mode execution only\n\
       
   130 \    -Xinternalversion\n\
       
   131 \                      displays more detailed JVM version information than the\n\
       
   132 \                      -version option\n\
       
   133 \    -Xloggc:<file>    log GC status to a file with time stamps\n\
       
   134 \    -Xmixed           mixed mode execution (default)\n\
       
   135 \    -Xmn<size>        sets the initial and maximum size (in bytes) of the heap\n\
       
   136 \                      for the young generation (nursery)\n\
       
   137 \    -Xms<size>        set initial Java heap size\n\
       
   138 \    -Xmx<size>        set maximum Java heap size\n\
       
   139 \    -Xnoclassgc       disable class garbage collection\n\
       
   140 \    -Xrs              reduce use of OS signals by Java/VM (see documentation)\n\
       
   141 \    -Xshare:auto      use shared class data if possible (default)\n\
       
   142 \    -Xshare:off       do not attempt to use shared class data\n\
       
   143 \    -Xshare:on        require using shared class data, otherwise fail.\n\
       
   144 \    -XshowSettings    show all settings and continue\n\
       
   145 \    -XshowSettings:all\n\
       
   146 \                      show all settings and continue\n\
       
   147 \    -XshowSettings:locale\n\
       
   148 \                      show all locale related settings and continue\n\
       
   149 \    -XshowSettings:properties\n\
       
   150 \                      show all property settings and continue\n\
       
   151 \    -XshowSettings:vm show all vm related settings and continue\n\
       
   152 \    -Xss<size>        set java thread stack size\n\
       
   153 \    -Xverify          sets the mode of the bytecode verifier\n\
       
   154 \    --add-reads <module>=<target-module>(,<target-module>)*\n\
       
   155 \                      updates <module> to read <target-module>, regardless\n\
       
   156 \                      of module declaration. \n\
       
   157 \                      <target-module> can be ALL-UNNAMED to read all unnamed\n\
       
   158 \                      modules.\n\
       
   159 \    --add-exports <module>/<package>=<target-module>(,<target-module>)*\n\
       
   160 \                      updates <module> to export <package> to <target-module>,\n\
       
   161 \                      regardless of module declaration.\n\
       
   162 \                      <target-module> can be ALL-UNNAMED to export to all\n\
       
   163 \                      unnamed modules.\n\
       
   164 \    --add-opens <module>/<package>=<target-module>(,<target-module>)*\n\
       
   165 \                      updates <module> to open <package> to\n\
       
   166 \                      <target-module>, regardless of module declaration.\n\
       
   167 \    --illegal-access=<value>\n\
       
   168 \                      permit or deny access to members of types in named modules\n\
       
   169 \                      by code in unnamed modules.\n\
       
   170 \                      <value> is one of "deny", "permit", "warn", or "debug"\n\
       
   171 \                      This option will be removed in a future release.\n\
       
   172 \    --limit-modules <module name>[,<module name>...]\n\
       
   173 \                      limit the universe of observable modules\n\
       
   174 \    --patch-module <module>=<file>({0}<file>)*\n\
       
   175 \                      override or augment a module with classes and resources\n\
       
   176 \                      in JAR files or directories.\n\
       
   177 \    --disable-@files  disable further argument file expansion\n\n\
       
   178 These extra options are subject to change without notice.\n
       
   179 
       
   180 # Translators please note do not translate the options themselves
       
   181 java.launcher.X.macosx.usage=\
       
   182 \n\
       
   183 The following options are Mac OS X specific:\n\
       
   184 \    -XstartOnFirstThread\n\
       
   185 \                      run the main() method on the first (AppKit) thread\n\
       
   186 \    -Xdock:name=<application name>\n\
       
   187 \                      override default application name displayed in dock\n\
       
   188 \    -Xdock:icon=<path to icon file>\n\
       
   189 \                      override default icon displayed in dock\n\n
       
   190 
       
   191 java.launcher.cls.error1=\
       
   192     Error: Could not find or load main class {0}\n\
       
   193     Caused by: {1}: {2}
       
   194 java.launcher.cls.error2=\
       
   195     Error: Main method is not {0} in class {1}, please define the main method as:\n\
       
   196 \   public static void main(String[] args)
       
   197 java.launcher.cls.error3=\
       
   198     Error: Main method must return a value of type void in class {0}, please \n\
       
   199     define the main method as:\n\
       
   200 \   public static void main(String[] args)
       
   201 java.launcher.cls.error4=\
       
   202     Error: Main method not found in class {0}, please define the main method as:\n\
       
   203 \   public static void main(String[] args)\n\
       
   204     or a JavaFX application class must extend {1}
       
   205 java.launcher.cls.error5=\
       
   206     Error: JavaFX runtime components are missing, and are required to run this application
       
   207 java.launcher.cls.error6=\
       
   208     Error: LinkageError occurred while loading main class {0}\n\
       
   209     \t{1}
       
   210 java.launcher.cls.error7=\
       
   211      Error: Unable to initialize main class {0}\n\
       
   212      Caused by: {1}: {2}
       
   213 java.launcher.jar.error1=\
       
   214     Error: An unexpected error occurred while trying to open file {0}
       
   215 java.launcher.jar.error2=manifest not found in {0}
       
   216 java.launcher.jar.error3=no main manifest attribute, in {0}
       
   217 java.launcher.jar.error4=error loading java agent in {0}
       
   218 java.launcher.init.error=initialization error
       
   219 java.launcher.javafx.error1=\
       
   220     Error: The JavaFX launchApplication method has the wrong signature, it\n\
       
   221     must be declared static and return a value of type void
       
   222 java.launcher.module.error1=\
       
   223     module {0} does not have a MainClass attribute, use -m <module>/<main-class>
       
   224 java.launcher.module.error2=\
       
   225     Error: Could not find or load main class {0} in module {1}
       
   226 java.launcher.module.error3=\
       
   227     Error: Unable to load main class {0} in module {1}\n\
       
   228     \t{2}
       
   229 java.launcher.module.error4=\
       
   230     {0} not found
       
   231 java.launcher.module.error5=\
       
   232     Error: Unable to initialize main class {0} in module {1}\n\
       
   233     Caused by: {1}: {2}