We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f10ed60 commit c45992cCopy full SHA for c45992c
ext/JarMain.java
@@ -42,10 +42,12 @@ public class JarMain implements Runnable {
42
URL mainClass = getClass().getResource(MAIN);
43
URI uri;
44
File file;
45
+ String pathWithoutMain;
46
47
try {
48
this.path = mainClass.toURI().getSchemeSpecificPart();
- uri = new URI(this.path.replace("!" + MAIN, ""));
49
+ pathWithoutMain = mainClass.toURI().getRawSchemeSpecificPart().replace("!" + MAIN, "");
50
+ uri = new URI(pathWithoutMain);
51
}
52
catch (URISyntaxException e) {
53
throw new RuntimeException(e);
0 commit comments