diff options
-rw-r--r-- | util/src/org/aspectj/util/LangUtil.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/util/src/org/aspectj/util/LangUtil.java b/util/src/org/aspectj/util/LangUtil.java index 0893ca747..dacce5408 100644 --- a/util/src/org/aspectj/util/LangUtil.java +++ b/util/src/org/aspectj/util/LangUtil.java @@ -962,7 +962,7 @@ public class LangUtil { String classpath, String mainClass, String[] args) { - File java = LangUtil.getJavaExecutable(classpath); + File java = LangUtil.getJavaExecutable(); ArrayList cmd = new ArrayList(); cmd.add(java.getAbsolutePath()); cmd.add("-classpath"); @@ -998,10 +998,9 @@ public class LangUtil { /** * Find java executable File path from java.home system property. - * @param classpath ignored for now * @return File associated with the java command, or null if not found. */ - public static File getJavaExecutable(String classpath) { // XXX weak + public static File getJavaExecutable() { String javaHome = null; File result = null; //java.home @@ -1155,7 +1154,7 @@ public class LangUtil { String classpath, String mainClass, String[] args) { - init(LangUtil.getJavaExecutable(classpath), + init(LangUtil.getJavaExecutable(), classpath, mainClass, args); } |