change condition in the method haveValidJavaVersion()

Is this bug? :-)