--- old/test/javax/script/GetInterfaceTest.java 2012-07-02 06:49:07.000000000 -0700 +++ new/test/javax/script/GetInterfaceTest.java 2012-07-02 06:49:06.000000000 -0700 @@ -25,6 +25,7 @@ * @test * @bug 6960211 * @summary JavaScript engine allows creation of interface although methods not available. + * @run main/othervm -Djava.awt.headless=true GetInterfaceTest */ import javax.script.*;