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

neil_a_wilson
22.07.2007 fbdbd9c15b2df2a73a7dd8686c654006d5d61eca
opends/resource/bin/start-ds
@@ -58,7 +58,9 @@
      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
@@ -109,16 +111,20 @@
  "${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