| | |
| | | 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; |
| | |
| | | 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(); |
| | |
| | | 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 |