From e9f0af36c8ac2fed241a0ae28f57f1c95adb3ec2 Mon Sep 17 00:00:00 2001 From: Gravit Date: Tue, 20 Nov 2018 22:26:56 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BE=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=D0=BA=D0=B8=20=D0=BF=D1=80=D0=B5=D0=B4=D0=B2=D0=B4=D1=83?= =?UTF-8?q?=D1=89=D0=B5=D0=B3=D0=BE=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8=D1=82?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/ru/gravit/launcher/client/ClientLauncher.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 038347a4..2aeb3672 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java @@ -366,9 +366,13 @@ else if (isDownloadJava) { Collections.addAll(args, profile.object.getJvmArgs()); Collections.addAll(args, "-Djava.library.path=".concat(params.clientDir.resolve(NATIVES_DIR).toString())); // Add Native Path Collections.addAll(args, "-javaagent:".concat(pathLauncher)); - Collections.addAll(args, "-classpath", pathLauncher); if(wrapper) Collections.addAll(args, "-Djava.class.path=".concat(pathLauncher)); // Add Class Path + else + { + Collections.addAll(args, "-cp"); + Collections.addAll(args, pathLauncher); + } Collections.addAll(args, ClientLauncher.class.getName()); // Print commandline debug message