docs: @SuppressWarnings("checkstyle:magicnumber")
  	public static Process launchVMWithJar(File jarFile, String... additionalParams) throws IOException {
  		final String javaBin = getVMBinary();
  		if (javaBin == null) {
  			throw new FileNotFoundException("java"); //$NON-NLS-1$
  		}
  		final long totalMemory = Runtime.getRuntime().maxMemory() / 1024;
  		final String userDir = FileSystem.getUserHomeDirectoryName();
  		final int nParams = 4;
  		final String[] params = new String[additionalParams.length + nParams];
  		params[0] = javaBin;
  		params[1] = "-Xmx" + totalMemory + "k"; //$NON-NLS-1$ //$NON-NLS-2$
  		params[2] = "-jar"; //$NON-NLS-1$
  		params[3] = jarFile.getAbsolutePath();
  		System.arraycopy(additionalParams, 0, params, nParams, additionalParams.length);
  		return Runtime.getRuntime().exec(params, null, new File(userDir));
  	}