< prev index next >

src/java.base/share/classes/sun/launcher/resources/launcher.properties

Print this page


   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\


 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=\


   1 #
   2 # Copyright (c) 2007, 2018, 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\
  33 \   or  {0} [options] java source-file [args]\n\n\
  34 \ Arguments following the main class, source-file, -jar <jarfile>,\n\
  35 \ -m or --module <module>/<mainclass> are passed as the arguments to\n\
  36 \ main class.\n\n\
  37 \ where options include:\n\n
  38 
  39 java.launcher.opt.vmselect   =\    {0}\t  to select the "{1}" VM\n
  40 java.launcher.opt.hotspot    =\    {0}\t  is a synonym for the "{1}" VM  [deprecated]\n
  41 
  42 # Translators please note do not translate the options themselves
  43 java.launcher.opt.footer = \
  44 \    -cp <class search path of directories and zip/jar files>\n\
  45 \    -classpath <class search path of directories and zip/jar files>\n\
  46 \    --class-path <class search path of directories and zip/jar files>\n\
  47 \                  A {0} separated list of directories, JAR archives,\n\
  48 \                  and ZIP archives to search for class files.\n\
  49 \    -p <module path>\n\
  50 \    --module-path <module path>...\n\
  51 \                  A {0} separated list of directories, each directory\n\
  52 \                  is a directory of modules.\n\
  53 \    --upgrade-module-path <module path>...\n\
  54 \                  A {0} separated list of directories, each directory\n\
  55 \                  is a directory of modules that replace upgradeable\n\
  56 \                  modules in the runtime image\n\


 159 \                      <target-module> can be ALL-UNNAMED to read all unnamed\n\
 160 \                      modules.\n\
 161 \    --add-exports <module>/<package>=<target-module>(,<target-module>)*\n\
 162 \                      updates <module> to export <package> to <target-module>,\n\
 163 \                      regardless of module declaration.\n\
 164 \                      <target-module> can be ALL-UNNAMED to export to all\n\
 165 \                      unnamed modules.\n\
 166 \    --add-opens <module>/<package>=<target-module>(,<target-module>)*\n\
 167 \                      updates <module> to open <package> to\n\
 168 \                      <target-module>, regardless of module declaration.\n\
 169 \    --illegal-access=<value>\n\
 170 \                      permit or deny access to members of types in named modules\n\
 171 \                      by code in unnamed modules.\n\
 172 \                      <value> is one of "deny", "permit", "warn", or "debug"\n\
 173 \                      This option will be removed in a future release.\n\
 174 \    --limit-modules <module name>[,<module name>...]\n\
 175 \                      limit the universe of observable modules\n\
 176 \    --patch-module <module>=<file>({0}<file>)*\n\
 177 \                      override or augment a module with classes and resources\n\
 178 \                      in JAR files or directories.\n\
 179 \    --disable-@files  disable further argument file expansion\n\
 180 \    --source <version>\n\
 181 \                      set the version of the source in source-file mode.\n\n\
 182 These extra options are subject to change without notice.\n
 183 
 184 # Translators please note do not translate the options themselves
 185 java.launcher.X.macosx.usage=\
 186 \n\
 187 The following options are Mac OS X specific:\n\
 188 \    -XstartOnFirstThread\n\
 189 \                      run the main() method on the first (AppKit) thread\n\
 190 \    -Xdock:name=<application name>\n\
 191 \                      override default application name displayed in dock\n\
 192 \    -Xdock:icon=<path to icon file>\n\
 193 \                      override default icon displayed in dock\n\n
 194 
 195 java.launcher.cls.error1=\
 196     Error: Could not find or load main class {0}\n\
 197     Caused by: {1}: {2}
 198 java.launcher.cls.error2=\
 199     Error: Main method is not {0} in class {1}, please define the main method as:\n\
 200 \   public static void main(String[] args)
 201 java.launcher.cls.error3=\


< prev index next >