nashorn/samples/find_nonfinals.js
changeset 26235 62342aaa8ff9
parent 26070 1c348e8d9b88
child 30984 844283fdfa54
--- a/nashorn/samples/find_nonfinals.js	Wed Aug 20 20:04:19 2014 +0530
+++ b/nashorn/samples/find_nonfinals.js	Wed Aug 20 21:32:09 2014 +0530
@@ -45,7 +45,7 @@
 
 // locate nashorn.jar from java.ext.dirs
 function findNashorn() {
-    var paths = System.getProperty("java.ext.dirs").split(':');
+    var paths = System.getProperty("java.ext.dirs").split(File.pathSeparator);
     for each (var p in paths) {
         var nashorn = p + File.separator + "nashorn.jar";
         if (new File(nashorn).exists()) {