X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fdistribution%2Fopendaylight%2Fsrc%2Fmain%2Fresources%2Frun.sh;h=58ead435103c24fd27d99f8d8f541b6135611027;hp=6caf3e3f57c55aa0f3c2d88f70e43dde7de355b8;hb=7b6412204f3ed497ec298f491404ca6eedf6d55d;hpb=f2fabcbc36fc0f5b183c8b1c72b8284eebb3fd4f diff --git a/opendaylight/distribution/opendaylight/src/main/resources/run.sh b/opendaylight/distribution/opendaylight/src/main/resources/run.sh index 6caf3e3f57..58ead43510 100755 --- a/opendaylight/distribution/opendaylight/src/main/resources/run.sh +++ b/opendaylight/distribution/opendaylight/src/main/resources/run.sh @@ -10,6 +10,9 @@ fi if [[ $platform == 'linux' ]]; then fullpath=`readlink -f $0` + + [[ -z ${JAVA_HOME} ]] && [[ -x "/usr/lib/jvm/java-1.7.0" ]] && export JAVA_HOME='/usr/lib/jvm/java-1.7.0'; + elif [[ $platform == 'osx' ]]; then TARGET_FILE=$0 cd `dirname $TARGET_FILE`