package jalview.util;
import java.io.BufferedReader;
+import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
// Note: JAL-3065 - don't include quotes for lib/* because the arguments are
// not expanded by the shell
String classpath = getClassPath();
- String _cmd = "java " + (withAwt ? "-Djava.awt.headless=true" : "")
+ String javahome = System.getProperty("java.home");
+
+ String _cmd = javahome + File.pathSeparator + "java "
+ + (withAwt ? "-Djava.awt.headless=true" : "")
+ " -classpath " + classpath + " " + javaArgs
+ " jalview.bin.Jalview ";
Process ls2_proc = null;