tags:

views:

2922

answers:

4

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.

A: 
VonC
+1  A: 

Your question contains a couple of assumptions that you might want to re-think.

It does not show the list of errors so that I can quickly jump to them.

Errors are flagged in the edit window while you are editing. You can fix them on the spot, without having to "jump" anywhere.

If you drop an entire source file into your project, you may not be in an edit window on that file. (And, of course, that's not standard Eclipse usage.) The simplest way I know do deal with that is simply to "Refresh" the project and look in the Package Explorer view to see whether there are any errors detected (which will happen immediately if you "refresh" a file into a source folder). Double-click on any files which show an error icon and look at the right-hand side of the edit window to see exactly where the errors are.

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...

Unless you are using multiple projects, with inter-project dependencies, I find it useful to close all but the current project on which I'm working. Then the "Problems" view is specific to the current context.

Finally, I'd recommend looking at the Mylin "getting started" page for other hints on how Eclipse can help you focus on the current task.

joel.neely
+2  A: 

You can configure the problem view to show only problems in the current project:

  1. Click on the small triangle at the far right of the view.
  2. In the popup menu, select "Configure Contents..."
  3. Select each item in the "Configurations" list and click on "Scope: On any element in the same project"

If you want to see the compiler working, you need open the "Progress" view.

Aaron Digulla
A: 

Goto Windows->Show View->Console or Alt+Shift+Q,C

Console appears in tab with Problem view

Sharique