Attempt to fix windows
This commit is contained in:
parent
9df4a14def
commit
9bd4641554
|
@ -1,16 +1,18 @@
|
|||
package io.gitlab.jfronny.inceptum;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
public class WrapperStrap {
|
||||
public static final ClassLoader SYSTEM_LOADER = ClassLoader.getSystemClassLoader();
|
||||
|
||||
public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, IOException, URISyntaxException, NoSuchFieldException {
|
||||
System.out.println("Starting Inceptum Wrapper ClassLoader");
|
||||
switchEnv(Path.of(WrapperStrap.class.getProtectionDomain().getCodeSource().getLocation().getPath()),
|
||||
switchEnv(new File(WrapperStrap.class.getProtectionDomain().getCodeSource().getLocation().toURI()).toPath(),
|
||||
"io.gitlab.jfronny.inceptum.Wrapper",
|
||||
args);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue