Skip to content

Commit

Permalink
update check of java version
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandy authored Apr 28, 2022
1 parent ed2622d commit 0dfa874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/pym/play/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 0dfa874

Please sign in to comment.