Skip to content

Commit

Permalink
Fix launch when jar path contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeregorix committed Sep 23, 2024
1 parent 9757058 commit 34aba64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void downloadAndRun() throws Exception {
.toArray(Path[]::new);

final URL rootJar = InstallerMain.class.getProtectionDomain().getCodeSource().getLocation();
final URI fsURI = new URI("jar", rootJar.toString(), null);
final URI fsURI = new URI("jar:" + rootJar);
System.setProperty("sponge.rootJarFS", fsURI.toString());

final FileSystem fs = FileSystems.newFileSystem(fsURI, Map.of());
Expand Down

0 comments on commit 34aba64

Please sign in to comment.