From 0dfa87438fe1302c470980d67b414cdd8804235f Mon Sep 17 00:00:00 2001 From: andrey alekseenko Date: Thu, 28 Apr 2022 16:53:18 +0600 Subject: [PATCH] update check of java version --- framework/pym/play/application.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/pym/play/application.py b/framework/pym/play/application.py index 644d041708..31730463ad 100644 --- a/framework/pym/play/application.py +++ b/framework/pym/play/application.py @@ -296,8 +296,8 @@ def java_cmd(self, java_args, cp_args=None, className='play.server.Server', args javaVersion = getJavaVersion() print("~ using java version \"%s\"" % javaVersion) - if javaVersion.startswith("1.5") or javaVersion.startswith("1.6") or javaVersion.startswith("1.7"): - print("~ ERROR: java version prior to 1.8 are no longer supported: current version \"%s\" : please update" % javaVersion) + if javaVersion.startswith("1.5") or javaVersion.startswith("1.6") or javaVersion.startswith("1.7") or javaVersion.startswith("1.8") or javaVersion.startswith("9") or javaVersion.startswith("10") : + print("~ ERROR: java version prior to 11 are no longer supported: current version \"%s\" : please update" % javaVersion) java_args.append('-noverify')