That error is caused when trying to retrieve the list of cookies (the game stores your name and score in a local cookie). Looks like your browser didn't want to give it to me
However that whole area is surrounded with a try-catch so if it fails, it just prints the stack trace and returns quietly
Anyway, I tried your code on Windows 7 with Java 7 and Ubuntu with OpenJDK 7. I painted the background light green and then used your code: it worked fine. I could see the red tint on the bottom.
Either you're doing something wrong somewhere or your flavor of Linux is messed up