1 #
2 # Copyright (c) 1999, 2025, 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 ## tool
27
28 javac.description=read Java class and interface definitions and compile them into bytecode and class files
29
30 ## standard options
31
32 javac.opt.g=\
33 Generate all debugging info
34 javac.opt.g.none=\
35 Generate no debugging info
36 javac.opt.g.lines.vars.source=\
37 Generate only some debugging info
38 javac.opt.nowarn=\
39 Generate only mandatory warnings
40 javac.opt.verbose=\
41 Output messages about what the compiler is doing
42 javac.opt.deprecation=\
43 Output source locations where deprecated APIs are used
44 javac.opt.classpath=\
45 Specify where to find user class files and annotation processors
46 javac.opt.modulepath=\
47 Specify where to find application modules
48 javac.opt.sourcepath=\
49 Specify where to find input source files
50 javac.opt.m=\
51 Compile only the specified module(s), check timestamps
52 javac.opt.modulesourcepath=\
53 Specify where to find input source files for multiple modules
54 javac.opt.bootclasspath=\
55 Override location of bootstrap class files
56 javac.opt.system=\
57 Override location of system modules
58 javac.opt.upgrademodulepath=\
59 Override location of upgradeable modules
60 javac.opt.endorseddirs=\
61 Override location of endorsed standards path
62 javac.opt.extdirs=\
63 Override location of installed extensions
64 javac.opt.processorpath=\
65 Specify where to find annotation processors
66 javac.opt.processormodulepath=\
67 Specify a module path where to find annotation processors
68 javac.opt.processor=\
69 Names of the annotation processors to run;\n\
70 bypasses default discovery process
71 javac.opt.parameters=\
72 Generate metadata for reflection on method parameters
73 javac.opt.proc.none.only=\
74 Control whether annotation processing and/or compilation is done.
75 javac.opt.d=\
76 Specify where to place generated class files
77 javac.opt.sourceDest=\
78 Specify where to place generated source files
79 javac.opt.headerDest=\
80 Specify where to place generated native header files
81 javac.opt.J=\
82 Pass <flag> directly to the runtime system
83 javac.opt.encoding=\
84 Specify character encoding used by source files
85 javac.opt.profile=\
86 Check that API used is available in the specified profile.\n\
87 This option is deprecated and may be removed in a future release.
88 javac.opt.target=\
89 Generate class files suitable for the specified Java SE release.\n\
90 Supported releases: \n {0}
91 javac.opt.release=\
92 Compile for the specified Java SE release.\n\
93 Supported releases: \n {0}
94 javac.opt.source=\
95 Provide source compatibility with the specified Java SE release.\n\
96 Supported releases: \n {0}
97 javac.opt.Werror=\
98 Terminate compilation if any warnings occur
99 javac.opt.arg.Werror=\
100 <key>(,<key>)*
101 javac.opt.Werror.custom=\
102 Specify lint categories for which warnings should terminate compilation,\n\
103 separated by comma. Precede a key by ''-'' to exclude the specified category.\n\
104 Use --help-lint to see the supported keys.
105 javac.opt.A=\
106 Options to pass to annotation processors
107 javac.opt.implicit=\
108 Specify whether to generate class files for implicitly referenced files
109 javac.opt.pkginfo=\
110 Specify handling of package-info files
111 javac.opt.multi-release=\
112 Specify which release to use in multi-release jars
113 javac.opt.arg.class=\
114 <class>
115 javac.opt.arg.class.list=\
116 <class1>[,<class2>,<class3>...]
117 javac.opt.arg.flag=\
118 <flag>
119 javac.opt.arg.key.equals.value=\
120 key[=value]
121 javac.opt.arg.path=\
122 <path>
123 javac.opt.arg.mspath=\
124 <module-source-path>
125 javac.opt.arg.m=\
126 <module>(,<module>)*
127 javac.opt.arg.jdk=\
128 <jdk>|none
129 javac.opt.arg.dirs=\
130 <dirs>
131 javac.opt.arg.directory=\
132 <directory>
133 javac.opt.arg.encoding=\
134 <encoding>
135 javac.opt.arg.profile=\
136 <profile>
137 javac.opt.arg.release=\
138 <release>
139 javac.opt.arg.number=\
140 <number>
141 javac.opt.plugin=\
142 Name and optional arguments for a plug-in to be run
143 javac.opt.arg.plugin=\
144 "name args"
145 javac.opt.arg.multi-release=\
146 <release>
147 javac.opt.arg.default.module.for.created.files=\
148 <module-name>
149
150 ## extended options
151
152 javac.opt.maxerrs=\
153 Set the maximum number of errors to print
154 javac.opt.maxwarns=\
155 Set the maximum number of warnings to print
156 javac.opt.nogj=\
157 Don''t accept generics in the language
158 javac.opt.moreinfo=\
159 Print extended information for type variables
160 javac.opt.printsearch=\
161 Print information where classfiles are searched
162 javac.opt.prompt=\
163 Stop after each error
164 javac.opt.s=\
165 Emit java sources instead of classfiles
166 javac.opt.version=\
167 Version information
168 javac.opt.arg.pathname=\
169 <pathname>
170 javac.opt.arg.file=\
171 <filename>
172 javac.opt.Xbootclasspath.p=\
173 Prepend to the bootstrap class path
174 javac.opt.Xbootclasspath.a=\
175 Append to the bootstrap class path
176 javac.opt.Xlint=\
177 Enable recommended lint warning categories. In this release, all\n\
178 available lint warning categories are recommended.
179 javac.opt.Xlint.all=\
180 Enable all lint warning categories
181 javac.opt.Xlint.none=\
182 Disable all lint warning categories
183 #L10N: do not localize: -Xlint
184 javac.opt.arg.Xlint=\
185 <key>(,<key>)*
186 javac.opt.Xlint.custom=\
187 Lint warning categories to enable or disable, separated by comma.\n\
188 Precede a key by ''-'' to disable the specified category. Use\n\
189 ''--help-lint'' to show supported keys and which categories are\n\
190 enabled by default.
191 javac.opt.Xlint.desc.auxiliaryclass=\
192 Warn about an auxiliary class that is hidden in a source file, and is used from other files.
193
194 javac.opt.Xlint.desc.cast=\
195 Warn about use of unnecessary casts.
196
197 javac.opt.Xlint.desc.classfile=\
198 Warn about issues related to classfile contents.
199
200 javac.opt.Xlint.desc.dangling-doc-comments=\
201 Warn about dangling documentation comments, not attached to any declaration.
202
203 javac.opt.Xlint.desc.missing-explicit-ctor=\
204 Warn about missing explicit constructors in public and protected classes in exported packages.
205
206 javac.opt.Xlint.desc.deprecation=\
207 Warn about use of deprecated items.
208
209 javac.opt.Xlint.desc.dep-ann=\
210 Warn about items marked as deprecated in JavaDoc but not using the @Deprecated annotation.
211
212 javac.opt.Xlint.desc.divzero=\
213 Warn about division by constant integer 0.
214
215 javac.opt.Xlint.desc.empty=\
216 Warn about empty statement after if.
217
218 javac.opt.Xlint.desc.exports=\
219 Warn about issues regarding module exports.
220
221 javac.opt.Xlint.desc.fallthrough=\
222 Warn about falling through from one case of a switch statement to the next.
223
224 javac.opt.Xlint.desc.finally=\
225 Warn about finally clauses that do not terminate normally.
226
227 javac.opt.Xlint.desc.incubating=\
228 Warn about use of incubating modules.
229
230 javac.opt.Xlint.desc.initialization=\
231 Warn about code in identity classes that wouldn''t be allowed in early\n\
232 \ construction due to a this dependency.
233
234 javac.opt.Xlint.desc.lossy-conversions=\
235 Warn about possible lossy conversions in compound assignment.
236
237 javac.opt.Xlint.desc.module=\
238 Warn about module system related issues.
239
240 javac.opt.Xlint.desc.migration=\
241 Warn about issues related to migration of JDK classes.
242
243 javac.opt.Xlint.desc.opens=\
244 Warn about issues regarding module opens.
245
246 javac.opt.Xlint.desc.options=\
247 Warn about issues relating to use of command line options.
248
249 javac.opt.Xlint.desc.output-file-clash=\
250 Warn when an output file is overwritten during compilation. This can occur, for example,\n\
251 \ on case-insensitive filesystems. Covers class files, native header files, and source files.
252
253 javac.opt.Xlint.desc.overloads=\
254 Warn about issues regarding method overloads.
255
256 javac.opt.Xlint.desc.overrides=\
257 Warn about issues regarding method overrides.
258
259 javac.opt.Xlint.desc.path=\
260 Warn about invalid path elements on the command line.
261
262 javac.opt.Xlint.desc.processing=\
263 Warn about issues regarding annotation processing.
264
265 javac.opt.Xlint.desc.rawtypes=\
266 Warn about use of raw types.
267
268 javac.opt.Xlint.desc.removal=\
269 Warn about use of API that has been marked for removal.
270
271 javac.opt.Xlint.desc.requires-automatic=\
272 Warn about use of automatic modules in the requires clauses.
273
274 javac.opt.Xlint.desc.requires-transitive-automatic=\
275 Warn about automatic modules in requires transitive.
276
277 javac.opt.Xlint.desc.serial=\
278 Warn about Serializable classes that do not have a serialVersionUID field. \n\
279 \ Also warn about other suspect declarations in Serializable and Externalizable classes and interfaces.
280
281 javac.opt.Xlint.desc.static=\
282 Warn about accessing a static member using an instance.
283
284 javac.opt.Xlint.desc.strictfp=\
285 Warn about unnecessary use of the strictfp modifier.
286
287 javac.opt.Xlint.desc.text-blocks=\
288 Warn about inconsistent white space characters in text block indentation.
289
290 javac.opt.Xlint.desc.this-escape=\
291 Warn when a constructor invokes a method that could be overriden in an external subclass.\n\
292 \ Such a method would execute before the subclass constructor completes its initialization.
293
294 javac.opt.Xlint.desc.try=\
295 Warn about issues relating to use of try blocks (i.e. try-with-resources).
296
297 javac.opt.Xlint.desc.unchecked=\
298 Warn about unchecked operations.
299
300 javac.opt.Xlint.desc.varargs=\
301 Warn about potentially unsafe vararg methods.
302
303 javac.opt.Xlint.desc.preview=\
304 Warn about use of preview language features.
305
306 javac.opt.Xlint.desc.restricted=\
307 Warn about use of restricted methods.
308
309 javac.opt.Xlint.desc.identity=\
310 Warn about uses of value-based classes where an identity class is expected.
311
312 javac.opt.Xlint.alias.of=\
313 Deprecated alias for ''{0}'' with an identical effect. Users are encouraged to use\n\
314 \ ''{0}'' instead of ''{1}'' for all current and future uses.
315
316 javac.opt.Xdoclint=\
317 Enable recommended checks for problems in javadoc comments
318 # L10N: do not localize: all none
319 javac.opt.Xdoclint.subopts = \
320 (all|none|[-]<group>)[/<access>]
321
322 # L10N: do not localize: accessibility html missing reference syntax
323 # L10N: do not localize: public protected package private
324 javac.opt.Xdoclint.custom=\
325 Enable or disable specific checks for problems in javadoc comments,\n\
326 where <group> is one of accessibility, html, missing, reference,\n\
327 or syntax, and <access> is one of public, protected, package,\n\
328 or private.
329
330 javac.opt.Xdoclint.package.args = \
331 [-]<packages>(,[-]<package>)*
332
333 javac.opt.Xdoclint.package.desc=\
334 Enable or disable checks in specific packages. Each <package> is either\n\
335 a qualified package name or a package name prefix followed by ''.*'',\n\
336 which expands to all sub-packages of the given package. Each <package>\n\
337 can be prefixed with ''-'' to disable checks for the specified package(s).
338
339 javac.opt.Xstdout=\
340 Redirect standard output
341 javac.opt.X=\
342 Print help on extra options
343 javac.opt.help=\
344 Print this help message
345 javac.opt.help.lint=\
346 Print the supported keys for -Xlint and -Werror
347 javac.opt.help.lint.header=\
348 The supported keys for -Xlint are:
349 javac.opt.help.lint.enabled.by.default=\
350 The following lint warning categories are enabled by default:
351 javac.opt.help.lint.footer=\
352 Categories and their aliases can be used interchangeably; for example, the flag\n\
353 ''-Xlint:{0},{1}'' would be redundant.
354 javac.opt.print=\
355 Print out a textual representation of specified types
356 javac.opt.printRounds=\
357 Print information about rounds of annotation processing
358 javac.opt.printProcessorInfo=\
359 Print information about which annotations a processor\n\
360 is asked to process
361 javac.opt.userpathsfirst=\
362 Search classpath and sourcepath for classes before the bootclasspath instead of after
363 javac.opt.prefer=\
364 Specify which file to read when both a source file and class file\n\
365 are found for an implicitly compiled class
366 # L10N: do not localize: ''preview''
367 javac.opt.preview=\
368 Enable preview language features. Also disables the ''preview'' lint category.\n\
369 To be used in conjunction with either -source or --release.
370 javac.opt.AT=\
371 Read options and filenames from file
372 javac.opt.diags=\
373 Select a diagnostic mode
374 javac.opt.addExports=\
375 Specify a package to be considered as exported from its\n\
376 defining module to additional modules, or to all unnamed modules\n\
377 if <other-module> is ALL-UNNAMED.
378 javac.opt.arg.addExports=\
379 <module>/<package>=<other-module>(,<other-module>)*
380 javac.opt.addReads=\
381 Specify additional modules to be considered as required by\n\
382 a given module; <other-module> may be ALL-UNNAMED to require\n\
383 the unnamed module.
384 javac.opt.arg.addReads=\
385 <module>=<other-module>(,<other-module>)*
386 javac.opt.patch=\
387 Override or augment a module with classes and resources\n\
388 in JAR files or directories
389 javac.opt.arg.patch=\
390 <module>=<file>(:<file>)*
391 javac.opt.addmods=\
392 Root modules to resolve in addition to the initial modules,\n\
393 or all modules on the module path if <module> is ALL-MODULE-PATH.
394 javac.opt.arg.addmods=\
395 <module>(,<module>)*
396 javac.opt.limitmods=\
397 Limit the universe of observable modules
398 javac.opt.arg.limitmods=\
399 <module>(,<module>)*
400 javac.opt.module.version=\
401 Specify version of modules that are being compiled
402 javac.opt.arg.module.version=\
403 <version>
404 javac.opt.inherit_runtime_environment=\
405 Inherit module system configuration options from the runtime environment.
406 javac.opt.default.module.for.created.files=\
407 Fallback target module for files created by annotation processors,\n\
408 if none specified or inferred.
409 javac.opt.lineDocComments=\
410 Disable support for documentation comments with lines beginning ''///''
411
412 ## messages
413
414 javac.msg.usage.header=\
415 Usage: {0} <options> <source files>\n\
416 where possible options include:
417
418 javac.msg.usage=\
419 Usage: {0} <options> <source files>\n\
420 use --help for a list of possible options
421
422 javac.msg.usage.nonstandard.footer=\
423 These extra options are subject to change without notice.
424
425 javac.msg.bug=\
426 An exception has occurred in the compiler ({0}). \
427 Please file a bug against the Java compiler via the Java bug reporting page (https://bugreport.java.com) \
428 after checking the Bug Database (https://bugs.java.com) for duplicates. \
429 Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
430
431 javac.msg.io=\
432 \n\nAn input/output error occurred.\n\
433 Consult the following stack trace for details.\n
434
435 javac.msg.proc.annotation.uncaught.exception=\
436 \n\nAn annotation processor threw an uncaught exception.\n\
437 Consult the following stack trace for details.\n
438
439 javac.msg.plugin.uncaught.exception=\
440 \n\nA plugin threw an uncaught exception.\n\
441 Consult the following stack trace for details.\n
442
443 javac.msg.resource=\
444 \n\nThe system is out of resources.\n\
445 Consult the following stack trace for details.\n
446
447 javac.version={0} {1}
448 javac.fullVersion={0} full version "{1}"
449
450 javac.msg.parameters.output=\
451 printing javac parameters to: {0}
452
453 javac.msg.parameters.output.error=\
454 error while trying to print javac parameters to: {0}, parameters will follow: