jdk/test/sun/tools/jrunscript/jrunscript-cpTest.sh
changeset 16040 105e9859a548
parent 5506 202f599c92aa
child 41486 95980c6371d6
--- a/jdk/test/sun/tools/jrunscript/jrunscript-cpTest.sh	Wed Feb 27 14:24:45 2013 +0000
+++ b/jdk/test/sun/tools/jrunscript/jrunscript-cpTest.sh	Wed Feb 27 20:34:12 2013 +0530
@@ -46,7 +46,7 @@
 # work with jrunscript. Script should be able to
 # access Java class "Hello".
 
-${JRUNSCRIPT} -cp . <<EOF
+${JRUNSCRIPT} -l nashorn -cp . <<EOF
 var v;  
 try { v = new Packages.Hello(); } catch (e) { println(e); exit(1) }
 if (v.string != 'hello') { println("Unexpected property value"); exit(1); }
@@ -58,7 +58,7 @@
 
 # -classpath and -cp are synonyms
 
-${JRUNSCRIPT} -classpath . <<EOF
+${JRUNSCRIPT} -l nashorn -classpath . <<EOF
 var v;
 try { v = new Packages.Hello(); } catch (e) { println(e); exit(1) }
 if (v.string != 'hello') { println("unexpected property value"); exit(1); }