'XXXX' does not name a type

The Arduino IDE uses C/C++, this looks like java...

import java.awt.;
import java.awt.image.
;

Remove these two lines and then see what you have.