# Viewing compilation errors and warnings

The workbench supports different ways to examine errors and warnings:

- Error ticks in Java views (e.g. Package Explorer)
- Marker annotations in the editor
- Tasks in the task list

If an expression you select to evaluate has a compilation error, it will be reported in the Scrapbook editor.

For example, if you type and select the (invalid) expression System.println("hi") in the editor and click Run in the toolbar, the error message:

The method println(java.lang.String) is undefined for the type java.lang.System

is displayed in the editor at the point of the error.

Java builder
Java editor
Scrapbook

Building automatically
Building manually
Running and debugging
Setting execution arguments

Package Explorer