paul8263 commented on code in PR #5051: URL: https://github.com/apache/zeppelin/pull/5051#discussion_r2309010931
########## bin/common.sh: ########## @@ -76,12 +76,9 @@ function check_java_version() { java_ver_output=$("${JAVA:-java}" -version 2>&1) jvmver=$(echo "$java_ver_output" | grep '[openjdk|java] version' | awk -F'"' 'NR==1 {print $2}' | cut -d\- -f1) JVM_VERSION=$(echo "$jvmver"|sed -e 's|^\([0-9][0-9]*\)\..*$|\1|') - if [ "$JVM_VERSION" = "1" ]; then - JVM_VERSION=$(echo "$jvmver"|sed -e 's|^1\.\([0-9][0-9]*\)\..*$|\1|') - fi - if [ "$JVM_VERSION" -lt 8 ] || { [ "$JVM_VERSION" -eq 8 ] && [ "${jvmver#*_}" -lt 151 ]; } ; then - echo "Apache Zeppelin requires either Java 8 update 151 or newer" + if [ "$JVM_VERSION" -lt 11 ]; then + echo "Apache Zeppelin requires either Java 11 or newer" Review Comment: If we run zeppelin-daemon.sh start we would get Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/zeppelin/server/ZeppelinServer has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0. So I think we should add the check both in zeppelin-daemon.sh and getZeppelinVersion in common.sh -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@zeppelin.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org