@@ -52,7 +52,7 @@ public class JvmManager {
5252 private static Label infoBar ;
5353
5454 public static String getCommandString (String project , String repo , String version , String downloadJsonURL ,
55- long sizeOfJson , ProgressBar progress , String bindir , Label info ) throws Exception {
55+ String downloadZip , long sizeOfZip , long sizeOfJson , ProgressBar progress , String bindir , Label info ) throws Exception {
5656 if (version == null )
5757 version = "0.0.6" ;
5858 infoBar =info ;
@@ -61,7 +61,7 @@ public static String getCommandString(String project, String repo, String versio
6161 File dest ;
6262 try {
6363 exe = download (version , downloadJsonURL , sizeOfJson , progress , bindir , "jvm.json" );
64- download (version , downloadJsonURL , sizeOfJson , progress , bindir , "gitcache.zip" );
64+ download (version , downloadZip , sizeOfZip , progress , bindir , "gitcache.zip" );
6565 Type TT_mapStringString = new TypeToken <HashMap <String , Object >>() {
6666 }.getType ();
6767 // chreat the gson object, this is the parsing factory
@@ -100,7 +100,7 @@ public static String getCommandString(String project, String repo, String versio
100100 System .out .println ("Failed the extract, erasing and re-downloading" );
101101 jvmArchive .delete ();
102102 ex .printStackTrace ();
103- return getCommandString (project , repo , version , downloadJsonURL , sizeOfJson , progress , bindir ,info );
103+ return getCommandString (project , repo , version , downloadJsonURL , downloadZip , sizeOfZip , sizeOfJson , progress , bindir ,info );
104104 }
105105 }
106106 if (type .toLowerCase ().contains ("tar.gz" )) {
0 commit comments