mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
28.50.2007 fd123dfd23f241e312dfa5e6430dc52cf4a0a98d
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java
@@ -34,6 +34,7 @@
import org.opends.quicksetup.*;
import static org.opends.quicksetup.util.Utils.*;
import org.opends.quicksetup.installer.InstallerHelper;
import org.opends.server.util.SetupUtils;
import javax.naming.NamingException;
import java.util.ArrayList;
@@ -128,11 +129,7 @@
      argList.toArray(args);
      ProcessBuilder pb = new ProcessBuilder(args);
      Map<String, String> env = pb.environment();
      env.put("JAVA_HOME", System.getProperty("java.home"));
      /* Remove JAVA_BIN to be sure that we use the JVM running the uninstaller
      * JVM to stop the server.
      */
      env.remove("JAVA_BIN");
      env.put(SetupUtils.OPENDS_JAVA_HOME, System.getProperty("java.home"));
      try {
        Process process = pb.start();
@@ -294,11 +291,7 @@
    ProcessBuilder pb = new ProcessBuilder(args);
    pb.directory(installation.getBinariesDirectory());
    Map<String, String> env = pb.environment();
    env.put("JAVA_HOME", System.getProperty("java.home"));
    /* Remove JAVA_BIN to be sure that we use the JVM running the installer
     * JVM to start the server.
     */
    env.remove("JAVA_BIN");
    env.put(SetupUtils.OPENDS_JAVA_HOME, System.getProperty("java.home"));
    // Upgrader's classpath contains jars located in the temporary
    // directory that we don't want locked by the directory server