[KARAF-5695]Starting Karaf Container 4.2.0 in Ubuntu 17.10 with OpenJDK 9 fails
@@ -208,7 +208,7 @@ detectJVM() {
}
checkJvmVersion() {
- VERSION=$("${JAVA}" -version 2>&1 | awk -F '"' '/version/ {print $2}' | sed -e 's/_.*//g; s/^1\.//g ; s/\..*//g;')
+ VERSION=$("${JAVA}" -version 2>&1 | awk -F '"' '/version/ {print $2}' | sed -e 's/_.*//g; s/^1\.//g ; s/\..*//g; s/-.*//g;')
if [ "${VERSION}" -lt "8" ]; then
die "JVM must be greater than 1.8"
fi
