test/javax/script/Test1.java

Print this page

        

@@ -24,10 +24,11 @@
 /*
  * @test
  * @bug 6249843 6705893
  * @summary Create JavaScript engine and execute a simple script.
  * Tests script engine discovery mechanism.
+ * @run main/othervm -Djava.awt.headless=true Test1
  */
 
 import javax.script.*;
 import java.io.*;