--- 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}`