Attempt to fix windows

This commit is contained in:
Johannes Frohnmeyer 2022-01-20 00:03:46 +01:00
parent 9df4a14def
commit 9bd4641554
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}