Java Eclipse中的控制台是';t显示输出
我在Eclipse中使用控制台窗口时遇到问题,因为它没有显示真正的输出。(stdout) 例如,当执行此程序时:Java Eclipse中的控制台是';t显示输出,java,eclipse,Java,Eclipse,我在Eclipse中使用控制台窗口时遇到问题,因为它没有显示真正的输出。(stdout) 例如,当执行此程序时: public class delila { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Hello World"); } } Eclipse的控制台显示如下输出: Eclipse Comp
public class delila {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello World");
}
}
Eclipse的控制台显示如下输出:
Eclipse Compiler for Java(TM) v20150120-1634, 3.10.2
Copyright IBM Corp 2000, 2013. All rights reserved.
Usage:
If directories are specified, then their source contents are compiled.
Possible options are listed below. Options enabled by default are prefixed
with '+'.
Classpath options:
-cp -classpath
specify location for application classes and sources.
Each directory or file can specify access rules for
types between '[' and ']' (e.g. [-X] to forbid
access to type X, [~X] to discourage access to type X,
[+p/X;-p/*] to forbid access to all types in package p
but allow access to p/X)
-bootclasspath
specify location for system classes. Each directory or
file can specify access rules for types between '['
and ']'
-sourcepath
specify location for application sources. Each directory
or file can specify access rules for types between '['
and ']'. Each directory can further specify a specific
destination directory using a '-d' option between '['
and ']'; this overrides the general '-d' option.
.class files created from source files contained in a
jar file are put in the user.dir folder in case no
general '-d' option is specified. ZIP archives cannot
override the general '-d' option
-extdirs
specify location for extension ZIP archives
-endorseddirs
specify location for endorsed ZIP archives
-d destination directory (if omitted, no directory is
created); this option can be overridden per source
directory
-d none generate no .class files
-encoding specify default encoding for all source files. Each
file/directory can override it when suffixed with
'['']' (e.g. X.java[utf8]).
If multiple default encodings are specified, the last
one will be used.
Compliance options:
-1.3 use 1.3 compliance (-source 1.3 -target 1.1)
-1.4 + use 1.4 compliance (-source 1.3 -target 1.2)
-1.5 -5 -5.0 use 1.5 compliance (-source 1.5 -target 1.5)
-1.6 -6 -6.0 use 1.6 compliance (-source 1.6 -target 1.6)
-1.7 -7 -7.0 use 1.7 compliance (-source 1.7 -target 1.7)
-1.8 -8 -8.0 use 1.8 compliance (-source 1.8 -target 1.8)
-source set source level: 1.3 to 1.8 (or 5, 5.0, etc)
-target set classfile target: 1.1 to 1.8 (or 5, 5.0, etc)
cldc1.1 can also be used to generate the StackMap
attribute
Warning options:
-deprecation + deprecation outside deprecated code (equivalent to
-warn:+deprecation)
-nowarn -warn:none disable all warnings
-nowarn:[]
specify directories from which optional problems should
be ignored
-?:warn -help:warn display advanced warning options
Error options:
-err: convert exactly the listed warnings
to be reported as errors
-err:+ enable additional warnings to be
reported as errors
-err:- disable specific warnings to be
reported as errors
Setting warning or error options using properties file:
-properties set warnings/errors option based on the properties
file contents. This option can be used with -nowarn,
-err:.. or -warn:.. options, but the last one on the
command line sets the options to be used.
Debug options:
-g[:lines,vars,source] custom debug info
-g:lines,source + both lines table and source debug info
-g all debug info
-g:none no debug info
-preserveAllLocals preserve unused local vars for debug purpose
Annotation processing options:
These options are meaningful only in a 1.6 environment.
-Akey[=value] options that are passed to annotation processors
-processorpath
specify locations where to find annotation processors.
If this option is not used, the classpath will be
searched for processors
-processor
qualified names of the annotation processors to run.
This bypasses the default annotation discovery process
-proc:only run annotation processors, but do not compile
-proc:none perform compilation but do not run annotation
processors
-s destination directory for generated source files
-XprintProcessorInfo print information about which annotations and elements
a processor is asked to process
-XprintRounds print information about annotation processing rounds
-classNames
qualified names of binary classes to process
Advanced options:
@ read command line arguments from file
-maxProblems max number of problems per compilation unit (100 by
default)
-log log to a file. If the file extension is '.xml', then
the log will be a xml file.
-proceedOnError[:Fatal]
do not stop at first error, dumping class files with
problem methods
With ":Fatal", all optional errors are treated as fatal
-verbose enable verbose output
-referenceInfo compute reference info
-progress show progress (only in -log mode)
-time display speed information
-noExit do not call System.exit(n) at end of compilation (n==0
if no error)
-repeat repeat compilation process times for perf analysis
-inlineJSR inline JSR bytecode (implicit if target >= 1.5)
-enableJavadoc consider references in javadoc
-parameters generate method parameters attribute (for target >= 1.8)
-genericsignature generate generic signature for lambda expressions
-Xemacs used to enable emacs-style output in the console.
It does not affect the xml log output
-missingNullDefault report missing default nullness annotation
-? -help print this help message
-v -version print compiler version
-showversion print compiler version and continue
Ignored options:
-J pass option to virtual machine (ignored)
-X specify non-standard option (ignored
except for listed -X options)
-X print non-standard options and exit (ignored)
-O optimize for execution time (ignored)
Eclipse Java编译器(TM)v20150120-1634,3.10.2
版权归IBM公司所有,2000年,2013年。版权所有。
用法:
如果指定了目录,则编译其源内容。
下面列出了可能的选项。默认情况下启用的选项带有前缀
用“+”表示。
类路径选项:
-类路径
指定应用程序类和源的位置。
每个目录或文件都可以指定访问规则
在“[”和“]”之间键入(例如,[-X]以禁止
访问类型X,[~X]要阻止访问类型X,
[+p/X;-p/*]禁止访问包p中的所有类型
但允许访问p/X)
-引导类路径
指定系统类的位置。每个目录或
文件可以为“[”之间的类型指定访问规则
和']'
-源路径
指定应用程序源的位置。每个目录
或者文件可以为“[”之间的类型指定访问规则
和']'。每个目录可以进一步指定一个特定的
使用'['之间的'-d'选项的目标目录
及",;这将覆盖常规'-d'选项。
.class文件是从中包含的源文件创建的
如果没有,jar文件将放在user.dir文件夹中
已指定常规'-d'选项。压缩档案无法
覆盖常规'-d'选项
-extdirs
指定扩展ZIP存档的位置
-背书人
指定已签名ZIP存档的位置
-d目标目录(如果省略,则不显示任何目录
创建);此选项可以被每个源覆盖
目录
-d无生成任何.class文件
-编码指定所有源文件的默认编码。每个
当后缀为时,文件/目录可以覆盖它
“[”””(例如X.java[utf8])。
如果指定了多个默认编码,则最后一个
将使用一个。
合规选项:
-1.3使用1.3合规性(-来源1.3-目标1.1)
-1.4+使用1.4合规性(-来源1.3-目标1.2)
-1.5-5-5.0使用1.5合规性(-来源1.5-目标1.5)
-1.6-6-6.0使用1.6法规遵从性(-来源1.6-目标1.6)
-1.7-7-7.0使用1.7法规遵从性(-源1.7-目标1.7)
-1.8-8-8.0使用1.8法规遵从性(-来源1.8-目标1.8)
-源设置源级别:1.3至1.8(或5、5.0等)
-目标集类文件目标:1.1到1.8(或5、5.0等)
cldc1.1还可用于生成StackMap
属性
警告选项:
-弃用+弃用代码之外的弃用(相当于
-警告:+弃用)
-nowarn-警告:无禁用所有警告
-诺瓦恩:[]
指定解决可选问题的目录
被忽视
-?:警告-帮助:警告显示高级警告选项
错误选项:
-错误:正确转换列出的警告
作为错误报告
-错误:+允许添加其他警告
报告为错误
-错误:-禁用要显示的特定警告
报告为错误
使用属性文件设置警告或错误选项:
-属性基于属性设置警告/错误选项
文件内容。此选项可与-nowarn一起使用,
-呃。。或-警告:。。选项,但最后一个
命令行设置要使用的选项。
调试选项:
-g[:行、变量、源]自定义调试信息
-g:行,源+行表和源调试信息
-g所有调试信息
-g:无无调试信息
-preserveAllLocals保留未使用的本地变量以用于调试
注释处理选项:
这些选项只有在1.6环境中才有意义。
-传递给注释处理器的Akey[=value]选项
-处理器路径
指定查找注释处理器的位置。
如果未使用此选项,则类路径将为
搜索处理器
-处理机
要运行的批注处理器的限定名称。
这将绕过默认注释发现过程
-proc:仅运行注释处理器,但不编译
-proc:none执行编译但不运行注释
处理器
-生成的源文件的目标目录
-XprintProcessorInfo打印有关哪些批注和元素的信息
要求处理器进行处理
-XprintRounds打印有关批注处理轮次的信息
-类名
要处理的二进制类的限定名称
高级选项:
@从文件中读取命令行参数
-maxProblems每个编译单元的最大问题数(100个)
默认值)
-将日志记录到文件中。如果文件扩展名为“.xml”,则
日志将是一个xml文件。
-程序执行器[:F