clarified java.ext.dirs: putting Isabelle extensions first makes it work miraculously even on Cygwin with Java in "C:\Program Files\..." (with spaces in file name);
authorwenzelm
Sat, 25 Jun 2011 12:57:46 +0200
changeset 43541 a1ed0456b7e6
parent 43540 71aba8ee3b8f
child 43542 7e2ef426c960
clarified java.ext.dirs: putting Isabelle extensions first makes it work miraculously even on Cygwin with Java in "C:\Program Files\..." (with spaces in file name);
src/Pure/System/Java_Ext_Dirs.java
--- a/src/Pure/System/Java_Ext_Dirs.java	Sat Jun 25 12:54:32 2011 +0200
+++ b/src/Pure/System/Java_Ext_Dirs.java	Sat Jun 25 12:57:46 2011 +0200
@@ -10,12 +10,12 @@
 {
   public static void main(String [] args) {
     StringBuilder s = new StringBuilder();
-    s.append(System.getProperty("java.ext.dirs"));
     int i;
     for (i = 0; i < args.length; i++) {
+      s.append(args[i]);
       s.append(System.getProperty("path.separator"));
-      s.append(args[i]);
     }
+    s.append(System.getProperty("java.ext.dirs"));
     System.out.println(s.toString());
   }
 }