nashorn/test/script/nosecurity/JDK-8050964.js
changeset 27571 08ef93eaca80
parent 26067 b32ccc3a76c9
child 27824 ab74da77b5a2
--- a/nashorn/test/script/nosecurity/JDK-8050964.js	Tue Nov 18 15:25:19 2014 -0800
+++ b/nashorn/test/script/nosecurity/JDK-8050964.js	Wed Dec 03 14:26:07 2014 +0000
@@ -48,6 +48,9 @@
 
 var javahome = System.getProperty("java.home");
 var jdepsPath = javahome + "/../bin/jdeps".replaceAll(/\//g, File.separater);
+if (! new File(jdepsPath).isFile()) {
+    jdepsPath = javahome + "/bin/jdeps".replaceAll(/\//g, File.separater);
+}
 
 // run jdep on nashorn.jar - only summary but print profile info
 `${jdepsPath} -s -P ${nashornJar.absolutePath}`