| | |
| | | import org.opends.quicksetup.Launcher; |
| | | import org.opends.quicksetup.QuickSetupLog; |
| | | import org.opends.quicksetup.installer.offline.OfflineInstaller; |
| | | import org.opends.quicksetup.util.IncompatibleVersionException; |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.messages.Message; |
| | | import org.opends.server.tools.InstallDS; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public void launch() { |
| | | // Validate user provided data |
| | | try |
| | | { |
| | | argParser.parseArguments(args); |
| | |
| | | } |
| | | else if (isCli()) |
| | | { |
| | | Utils.checkJavaVersion(); |
| | | System.exit(InstallDS.mainCLI(args)); |
| | | } |
| | | else |
| | | { |
| | | willLaunchGui(); |
| | | // The java version is checked in the launchGui code to be sure |
| | | // that if there is a problem with the java version the message |
| | | // (if possible) is displayed graphically. |
| | | int exitCode = launchGui(args); |
| | | if (exitCode != 0) { |
| | | File logFile = QuickSetupLog.getLogFile(); |
| | |
| | | { |
| | | guiLaunchFailed(null); |
| | | } |
| | | Utils.checkJavaVersion(); |
| | | System.exit(InstallDS.mainCLI(args)); |
| | | } |
| | | } |
| | |
| | | |
| | | System.exit(ReturnCode.USER_DATA_ERROR.getReturnCode()); |
| | | } |
| | | catch (IncompatibleVersionException ive) |
| | | { |
| | | System.err.println(ive.getMessageObject()); |
| | | System.exit(ReturnCode.JAVA_VERSION_INCOMPATIBLE.getReturnCode()); |
| | | } |
| | | } |
| | | |
| | | /** |