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");
/**
* 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
String classpath,
String mainClass,
String[] args) {
- init(LangUtil.getJavaExecutable(classpath),
+ init(LangUtil.getJavaExecutable(),
classpath, mainClass, args);
}