OpenDaylight was never able to run with 1.6, hence we should
enforce Java 7 at least.
Change-Id: I3e6a5d21d4af6c3916528178b0465e86190c0dc6
Signed-off-by: Robert Varga <rovarga@cisco.com>
# echo "`$JAVA -version`"
VERSION=`$JAVA -version 2>&1 | egrep '"([0-9].[0-9]\..*[0-9]).*"' | awk '{print substr($3,2,length($3)-2)}' | awk '{print substr($1, 3, 3)}' | sed -e 's;\.;;g'`
# echo $VERSION
- if [ "$VERSION" -lt "60" ]; then
- echo "JVM must be greater than 1.6"
+ if [ "$VERSION" -lt "70" ]; then
+ echo "JVM must be 1.7.0 or greater"
exit 1;
fi
}
# Determine the JVM vendor
detectJVM
- # Determine the JVM version >= 1.6
+ # Determine the JVM version >= 1.7
checkJvmVersion
# Setup default options