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