diff --git a/eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons/src/org/springframework/tooling/ls/eclipse/commons/STS4LanguageServerProcessStreamConnector.java b/eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons/src/org/springframework/tooling/ls/eclipse/commons/STS4LanguageServerProcessStreamConnector.java index 0c72089b81..685f29d893 100644 --- a/eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons/src/org/springframework/tooling/ls/eclipse/commons/STS4LanguageServerProcessStreamConnector.java +++ b/eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons/src/org/springframework/tooling/ls/eclipse/commons/STS4LanguageServerProcessStreamConnector.java @@ -109,12 +109,13 @@ protected final void initExecutableJarCommand(Path lsDir, String jarPrefix, List List command = new ArrayList<>(); command.add(runtime.getJavaExecutable()); + + fillCommand(command, extraVmArgs); + command.add("-jar"); command.add(languageServerRoot.resolve(jarFile).toFile().toString()); - fillCommand(command, extraVmArgs); - setCommands(command); LanguageServerCommonsActivator.getInstance().getLog().info("Command list starting LS: " + connectorId + "\nSTART:\n" + String.join("\n", command) + "\nEND");