| | |
| | | |
| | | :testJava |
| | | "%OPENDS_JAVA_BIN%" %OPENDS_JAVA_ARGS% org.opends.server.tools.InstallDS -t > NUL 2>&1 |
| | | if not %errorlevel% == 0 goto noValidJavaHome |
| | | set RESULT_CODE=%errorlevel% |
| | | if %RESULT_CODE% == 13 goto notSupportedJavaHome |
| | | if not %RESULT_CODE% == 0 goto noValidJavaHome |
| | | goto end |
| | | |
| | | :noValidJavaHome |
| | |
| | | pause |
| | | exit /B 1 |
| | | |
| | | :notSupportedJavaHome |
| | | rem We get here when the java version is 5 (or up) but not supported. We run |
| | | rem InstallDS again to see a localized message. |
| | | "%OPENDS_JAVA_BIN%" %OPENDS_JAVA_ARGS% org.opends.server.tools.InstallDS -t |
| | | pause |
| | | exit /B 1 |
| | | |
| | | :noValidHomeWithArgs |
| | | echo ERROR: The detected Java version could not be used with the set of java |
| | | echo arguments %OPENDS_JAVA_ARGS%. |