The package doesn't exist as the compiler sees it. Is the java file in a package like directory structure? I'd recommend using an IDE to make things such as this MUCH easier