Get the absolute path to a local VM to avoid CWD problems.

This commit is contained in:
Michael Bayne
2017-02-12 09:20:22 -08:00
parent 1da36ace83
commit 0b5c82a116
@@ -92,7 +92,7 @@ public class LaunchUtil
public static String getJVMPath (File appdir, boolean windebug)
{
// first look in our application directory for an installed VM
String vmpath = checkJVMPath(new File(appdir, LOCAL_JAVA_DIR).getPath(), windebug);
String vmpath = checkJVMPath(new File(appdir, LOCAL_JAVA_DIR).getAbsolutePath(), windebug);
// then fall back to the VM in which we're already running
if (vmpath == null) {