@@ -18,21 +18,17 @@ public void launchApp() throws InterruptedException, IOException {
1818
1919 String appPath = config .getAppPath ();
2020 String jarName = config .getValue (GithubConfig .JAR_PATH );
21- String javaPath = config .getValue (GithubConfig .JAVA_PATH );
21+ // String javaPath = config.getValue(GithubConfig.JAVA_PATH);
2222
2323 System .out .println ("Launching " + jarName
24- + " with java in " + javaPath
24+ // + " with java in " + javaPath
2525 + " from folder " + appPath );
2626
27- // shahaal: this parameters set the heap size of the application and the gc to use
28- String minHeapSize = "-Xms128m" ;
29- String maxHeapSize = "-Xmx768m" ;
30-
3127 // uncomment and add as parameter for mac os x
3228 // String firstThread = "-XstartOnFirstThread";
3329
34- //for Windows 32/64 bit version
35- ProcessBuilder pb = new ProcessBuilder (javaPath , "-jar " , jarName , minHeapSize , maxHeapSize );
30+ //for Windows 32/64 bit version with custom heap size
31+ ProcessBuilder pb = new ProcessBuilder ("java" , "-Xms128m " , "-Xmx768m" , "-jar" , jarName );
3632
3733 //for os x 32/64 bit version
3834 //ProcessBuilder pb = new ProcessBuilder(javaPath, "-jar", jarName, heapSize, gc, firstThread);
0 commit comments