Generalized Java8Rule to check for any Java version.