src/Pure/System/standard_system.scala
changeset 36193 067a01827fca
parent 36136 89b1a136edef
child 38264 205b74a1bb18
--- a/src/Pure/System/standard_system.scala	Sat Apr 17 19:35:35 2010 +0200
+++ b/src/Pure/System/standard_system.scala	Sat Apr 17 20:42:26 2010 +0200
@@ -211,4 +211,17 @@
       }
     }
     else jvm_path
+
+
+  /* this_java executable */
+
+  def this_java(): String =
+  {
+    val java_home = System.getProperty("java.home")
+    val java_exe =
+      if (Platform.is_windows) new File(java_home + "\\bin\\java.exe")
+      else new File(java_home + "/bin/java")
+    if (!java_exe.isFile) error("Expected this Java executable: " + java_exe.toString)
+    posix_path(java_exe.getAbsolutePath)
+  }
 }