| | |
| | | then |
| | | export JAVA_BIN |
| | | else |
| | | echo "Please set JAVA_HOME to the root of a Java 5.0 installation." |
| | | echo "ERROR: No Java installation could be found. Please set" |
| | | echo " JAVA_HOME to the root of a Java 5.0 or higher" |
| | | echo " installation." |
| | | exit 1 |
| | | fi |
| | | fi |
| | |
| | | "${JAVA_BIN}" org.opends.server.tools.InstallDS -t 2> /dev/null |
| | | if test ${?} -ne 0 |
| | | then |
| | | echo "ERROR: The detected Java version could not be used. Please set " |
| | | echo " JAVA_HOME to the root of a Java 5.0 installation." |
| | | echo "ERROR: The detected Java version could not be used. Please ensure" |
| | | echo " that JAVA_HOME is set to the root of a valid Java 5.0 or" |
| | | echo " higher installation." |
| | | exit 1 |
| | | fi |
| | | else |
| | | "${JAVA_BIN}" ${JAVA_ARGS} org.opends.server.tools.InstallDS -t 2> /dev/null |
| | | if test ${?} -ne 0 |
| | | then |
| | | echo "ERROR: The detected Java version could not be used with the specified" |
| | | echo "Java arguments. Please set JAVA_HOME to the root of a Java 5.0 installation." |
| | | echo "ERROR: The detected Java version could not be used with the" |
| | | echo " set of arguments. Please ensure that JAVA_HOME is set to" |
| | | echo " the root of a valid Java 5.0 or higher installation, and" |
| | | echo " make sure that JAVA_ARGS contains a valid set of arguments" |
| | | echo " for that JVM." |
| | | exit 1 |
| | | fi |
| | | fi |