From 0b5c82a1166cfe614012be9aea66593ef0799f82 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sun, 12 Feb 2017 09:20:22 -0800 Subject: [PATCH] Get the absolute path to a local VM to avoid CWD problems. --- src/main/java/com/threerings/getdown/util/LaunchUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/threerings/getdown/util/LaunchUtil.java b/src/main/java/com/threerings/getdown/util/LaunchUtil.java index 716961d..92c6d10 100644 --- a/src/main/java/com/threerings/getdown/util/LaunchUtil.java +++ b/src/main/java/com/threerings/getdown/util/LaunchUtil.java @@ -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) {