It seems that you haven’t any X11 installed on your linux box, I think the problem is that java AWT uses native OS API for graphic works and you don’t have any.
Your have two solution one is to install X11 on your linux and another is to run your JVM with headless=true option.
But take care that the first solution is not safe for internet servers because you make a security whole for it.