# 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
- Problems in the Problems view
- Tasks in the Tasks view

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