make spark-class to work with openjdk

fix for  SPARK-3520 - java version check in spark-class fails with openjdk