Eclipse 3.4.1 - 在构建项目时如何查看控制台中的编译器输出 [英] Eclipse 3.4.1 - how to view compiler output in Console while building a project

查看:312
本文介绍了Eclipse 3.4.1 - 在构建项目时如何查看控制台中的编译器输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有什么似乎是一个非常讨厌的问题。在Eclipse中编译项目时,我看到没有控制台显示Java编译器的调用和构建结果(如NetBeans中一样)。



例如,如果我将一个现有的项目导入Eclipse并调用Project-> Build Project,是否有一个视图可以显示编译结果?虽然我知道我的项目包含许多有错误的文件,但是调用Build Project不会显示编译的可视化结果/进度。它不显示错误列表,以便我可以快速跳转到他们。



我知道有一个问题视图,其中显示了一个列表所有项目中的问题(而不仅仅是编译器错误),而不是我正在使用的特定项目,这使得定位和跳转到问题的根源非常不方便。

解决方案

由于Eclipse JDT提供了自己的内置Java编译器,所以通常看不到Java编译器的调用。



内置的Java编译器与Eclipse和JDT紧密集成,并提供源索引,实现强大的IDE功能,如重构和快速修复。



另外,它可以在每个文件修改后的后台进行增量构建,因此没有可见的 java 调用。






您可以用自己的javac调用来替换/完成java编译器:



例如, 使用阿尔卡特朗讯nmake与Eclipse JDT 正是这样,并使用配置启动器(您可以指示显示控制台):



您将需要添加








不要忘记,您可以创建许多问题视图,并设置其中一个仅显示当前项目的问题。





选择:在同一个项目中的任何元素


I have what appears to be a very annoying problem. When compiling a project in Eclipse, I see no Console that shows the invocation of the Java compiler and the build results (as in NetBeans).

If I, for instance, import an existing project into Eclipse and invoke Project->Build Project, is there a view that will show me results of the compilation? While I know that my project contains a number of files that have errors, invoking Build Project shows no visual result/progress of the compilation. It does not show the list of errors so that I can quickly jump to them.

I'm aware that there is a "Problems" view, which shows a list of problems (and not just compiler errors) in all projects and not the particular project that I am working with, which makes it very inconvenient to locate and jump to source of the problem.

解决方案

Since Eclipse JDT provides its own built-in Java compiler, you generally do not see the invocation of Java Compiler.

The built-in Java compiler is tightly integrated with Eclipse and JDT, and provides the source indexing that enables powerful IDE features such as refactoring and quick fix.

Plus, it enables incremental build in background after each file modification, hence no visible "java" invocation.


You can replace/complete the java compiler with a javac` call of your own:

For instance, Using Alcatel-Lucent nmake with Eclipse JDT does precisely that, and uses a configuration launcher (which you can instruct to show a console):

You will need to add that special builder in the "builder" section of your project.


Do not forget you can create many "Problem view", and set one of them to show only problems for your current project.

Select: "on any element in same project"

这篇关于Eclipse 3.4.1 - 在构建项目时如何查看控制台中的编译器输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆