- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 Eclipse 中的控制台窗口中遇到问题,因为它没有显示真实的输出。 (标准输出)
例如当执行此程序时:
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)
有谁可以帮助获得真实输出(stdout)“Hello world”,而不是此文本。
谢谢。
我使用ctrl+F11
运行它
最佳答案
评论有点长:
具体来说,你是如何运行这个程序的?
显示此文本的控制台的名称是什么?它应该位于 Console
的正下方选项卡和第一行文本上方。
在控制台 View 中有图标选项,当鼠标悬停在它们上时会显示其名称,请使用 X
关闭您不想要的控制台。
此外,检查“显示选定的控制台”和“打开控制台”以查看是否有与正在运行/已完成的程序对应的可用控制台
编辑:
看起来像ctrl + F11
正在运行名为 Main [5]
的程序作为Java Application
而不是delila
。尝试直接运行这个类,右键点击源文件,Run As
Java Application
。看看它是如何工作的。
关于java - Eclipse 中的控制台不显示输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49658463/
我的Angular-Component位于一个flexbox(id =“log”)中。可以显示或隐藏flexbox。 我的组件内部有一个可滚动区域,用于显示日志消息。 (id =“message-li
我真的很困惑 有一个 phpinfo() 输出: MySQL 支持 启用 客户端 API 版本 5.5.40 MYSQL_MODULE_TYPE 外部 phpMyAdmin 显示: 服务器类型:Mar
我正在研究这个 fiddle : http://jsfiddle.net/cED6c/7/我想让按钮文本在单击时发生变化,我尝试使用以下代码: 但是,它不起作用。我应该如何实现这个?任何帮助都会很棒
我应该在“dogs_cats”中保存表“dogs”和“cats”各自的ID,当看到数据时显示狗和猫的名字。 我有这三个表: CREATE TABLE IF NOT EXISTS cats ( id
我有一个字符串返回到我的 View 之一,如下所示: $text = 'Lorem ipsum dolor ' 我正在尝试用 Blade 显示它: {{$text}} 但是,输出是原始字符串而不是渲染
我无法让我的链接(由图像表示,位于页面左侧)真正有效地显示一个 div(包含一个句子,位于中间)/单击链接时隐藏。 这是我的代码: Practice
关闭。这个问题需要多问focused 。目前不接受答案。 想要改进此问题吗?更新问题,使其仅关注一个问题 editing this post . 已关闭 4 年前。 Improve this ques
最初我使用 Listview 来显示 oracle 结果,但是最近我不得不切换到 datagridview 来处理比 Listview 允许的更多的结果。然而,自从切换到数据网格后,我得到的结果越来越
我一直在尝试插入一个 Unicode 字符 ∇ 或 ▽,所以它显示在 Apache FOP 生成的 PDF 中。 这是我到目前为止所做的: 根据这个基本帮助 Apache XSL-FO Input,您
我正在使用 node v0.12.7 编写一个 nodeJS 应用程序。 我正在使用 pm2 v0.14.7 运行我的 nodejs 应用程序。 我的应用程序似乎有内存泄漏,因为它从我启动时的大约 1
好的,所以我有一些 jQuery 代码,如果从下拉菜单中选择了带有前缀 Blue 的项目,它会显示一个输入框。 代码: $(function() { $('#text1').hide();
当我试图检查 Chrome 中的 html 元素时,它显示的是 LESS 文件,而 Firefox 显示的是 CSS 文件。 (我正在使用 Bootstrap 框架) 如何在 Chrome 中查看 c
我是 Microsoft Bot Framework 的新手,我正在通过 youtube 视频 https://youtu.be/ynG6Muox81o 学习它并在 Ubuntu 上使用 python
我正在尝试转换从 mssql 生成的文件到 utf-8。当我打开他的输出 mssql在 Windows Server 2003 中使用 notepad++ 将文件识别为 UCS-2LE我使用 file
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
我正在尝试执行单击以打开/关闭一个 div 的功能。 这是基本的,但是,点击只显示 div,当我点击“关闭”时,没有任何反应。 $(".inscricao-email").click(function
假设我有 2 张卡片,屏幕上一次显示一张。我有一个按钮可以用其他卡片替换当前卡片。现在假设卡 1 上有一些数据,卡 2 上有一些数据,我不想破坏它们每个上的数据,或者我不想再次重建它们中的任何一个。
我正在使用 Eloquent Javascript 学习 Javascript。 我在 Firefox 控制台上编写了以下代码,但它返回:“ReferenceError:show() 未定义”为什么?
我正在使用 Symfony2 开发一个 web 项目,我使用 Sonata Admin 作为管理面板,一切正常,但我想要做的是,在 Sonata Admin 的仪表板菜单上,我需要显示隐藏一些菜单取决
我试图显示一个div,具体取决于从下拉列表中选择的内容。例如,如果用户从列表中选择“现金”显示现金div或用户从列表中选择“检查”显示现金div 我整理了样本,但样本不完整,需要接线 http://j
我是一名优秀的程序员,十分优秀!