Skip to content

Commit

Permalink
Merge pull request #1409 from aleksandy/correct-check-of-java-version…
Browse files Browse the repository at this point in the history
…-before-startup

update check of java version
  • Loading branch information
xael-fry authored Jun 11, 2022
2 parents 7cc3fbb + 0dfa874 commit 629aee5
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 629aee5

Please sign in to comment.