+[[ -z ${JAVA_HOME} ]] && echo "Need to set JAVA_HOME environment variable" && exit -1;
+[[ ! -x ${JAVA_HOME}/bin/java ]] && echo "Cannot find an executable \
+JVM at path ${JAVA_HOME}/bin/java check your JAVA_HOME" && exit -1;
+
+if [ -z ${ODL_BASEDIR} ]; then
+ basedir=`dirname ${fullpath}`
+else
+ basedir=${ODL_BASEDIR}
+fi
+
+if [ -z ${ODL_DATADIR} ]; then
+ datadir=`dirname ${fullpath}`
+else
+ datadir=${ODL_DATADIR}
+fi