Marcus --
Eclipse scrapbook pages aren't meant to contain complete
Java translation units, just short snippets of executable code. You can't type import statements or package statements, among other things.
Instead, to import classes to a scrapbook page, right-click to get the context menu, and pick "Set imports".