diff --git a/yat-master/pymodule/yat/cli/env_checking.py b/yat-master/pymodule/yat/cli/env_checking.py index 390a5330c97bf5b91ca556130a5e7052bfca8e3a..aa989ea1fc7b96c3efaf89a253e98f0310029e1c 100644 --- a/yat-master/pymodule/yat/cli/env_checking.py +++ b/yat-master/pymodule/yat/cli/env_checking.py @@ -39,7 +39,7 @@ def check_depend(): errors.append("java is not install") return errors - if None is re.search(r'version[^0-9]*1\.(8|9|10|11)\.*', out): + if None is re.search(r'version[^0-9]*(1\.)?(8|9|10|11)\.*', out): errors.append("java need version >= 1.8") return errors