If you run Java 1.4 or later you can use java in headless mode. This is done by starting the java machine with the "-Djava.awt.headless=true" parameter.
This problem I have found with Repast ver2.0 and might affect those wanting to test a graphics program in JAVA under UNIX without wasting painting resources.