JAL-3224 New version of getdown which will cope with unpacking .tgz resources, specif...
[jalview.git] / getdown / src / getdown / core / src / main / java / com / threerings / getdown / data / Application.java
index 501407c..0a49739 100644 (file)
@@ -448,7 +448,8 @@ public class Application
             return null;
         }
 
-        String vmfile = LaunchUtil.LOCAL_JAVA_DIR + ".jar";
+        String extension = (_javaLocation.endsWith(".tgz"))?".tgz":".jar";
+        String vmfile = LaunchUtil.LOCAL_JAVA_DIR + extension;
                log.info("vmfile is '"+vmfile+"'");
                System.out.println("vmfile is '"+vmfile+"'");
         try {