From f50bf112995b765acba387f240936acb80e17abe Mon Sep 17 00:00:00 2001 From: zaxar163 Date: Mon, 17 Dec 2018 15:54:07 +0300 Subject: [PATCH] Noverify option. --- .../main/java/ru/gravit/launcher/ClientLauncherWrapper.java | 5 +---- .../main/java/ru/gravit/launcher/client/ClientLauncher.java | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Launcher/src/main/java/ru/gravit/launcher/ClientLauncherWrapper.java b/Launcher/src/main/java/ru/gravit/launcher/ClientLauncherWrapper.java index 7252244e..e287fdbd 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/ClientLauncherWrapper.java +++ b/Launcher/src/main/java/ru/gravit/launcher/ClientLauncherWrapper.java @@ -30,10 +30,7 @@ public static void main(String[] arguments) throws IOException, InterruptedExcep args.add(javaBin.toString()); String pathLauncher = IOHelper.getCodeSource(ClientLauncher.class).toString(); args.add(JVMHelper.jvmProperty(LogHelper.DEBUG_PROPERTY, Boolean.toString(LogHelper.isDebugEnabled()))); - Collections.addAll(args, "-javaagent:".concat(pathLauncher)); - Collections.addAll(args, "-cp"); - Collections.addAll(args, pathLauncher); - Collections.addAll(args, LauncherEngine.class.getName()); + Collections.addAll(args, "-noverify", "-javaagent:".concat(pathLauncher), "-cp", pathLauncher, LauncherEngine.class.getName()); EnvHelper.addEnv(processBuilder); LogHelper.debug("Commandline: " + args); processBuilder.command(args); diff --git a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java index 1eaba689..1a09188c 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java @@ -379,7 +379,7 @@ public static Process launch( Collections.addAll(args, "-Djava.library.path=".concat(params.clientDir.resolve(NATIVES_DIR).toString())); // Add Native Path Collections.addAll(args, "-javaagent:".concat(pathLauncher)); if(wrapper) - Collections.addAll(args, "-Djava.class.path=".concat(pathLauncher)); // Add Class Path + Collections.addAll(args, "-Djava.class.path=".concat(pathLauncher), "-noverify"); // Add Class Path else { Collections.addAll(args, "-cp");