Fixed yet another issue relating to spaces in the path

This commit is contained in:
coolGi
2023-10-12 18:38:56 +00:00
parent 7f4e5d9e58
commit 7ce89e9903
@@ -317,9 +317,9 @@ public class SelfUpdater
// Execute the new jar, to delete the old jar once it detects the lock has been lifted
Runtime.getRuntime().exec(
"\""+ javaBin +"\" -cp "+
"\""+ javaBin +"\" -cp \""+
newFileLocation.getAbsolutePath()
+" "+
+"\" "+
DeleteOnUnlock.class.getCanonicalName()
+" "+
URLEncoder.encode(JarUtils.jarFile.getAbsolutePath(), "UTF-8") // Encode the file location so that it doesnt have any spaces