Scala Java Play akka项目从jdk8迁移到jdk11

Scala Java Play akka项目从jdk8迁移到jdk11,scala,java-8,playframework,akka,java-11,Scala,Java 8,Playframework,Akka,Java 11,我正在尝试将使用play和Akka框架构建在jdk8上的项目迁移到jdk11。在此过程中,我得到以下错误。有人能告诉我为什么会抛出错误吗? 以下是我正在使用的版本: JDK-11 SCala 2.12.8 重头戏2.6.7 Akka 2.5.13 例外情况: java.lang.NumberFormatException: Not a version: 11 at scala.util.PropertiesTrait$class.parts$1(Properties.scala:1

我正在尝试将使用play和Akka框架构建在jdk8上的项目迁移到jdk11。在此过程中,我得到以下错误。有人能告诉我为什么会抛出错误吗? 以下是我正在使用的版本:

  • JDK-11
  • SCala 2.12.8
  • 重头戏2.6.7
  • Akka 2.5.13
例外情况:

 java.lang.NumberFormatException: Not a version: 11
    at scala.util.PropertiesTrait$class.parts$1(Properties.scala:176)
    at scala.util.PropertiesTrait$class.isJavaAtLeast(Properties.scala:180)
    at scala.util.Properties$.isJavaAtLeast(Properties.scala:16)
    at play.dev.filewatch.FileWatchService$$anon$1.delegate$lzycompute(FileWatchService.scala:68)
    at play.dev.filewatch.FileWatchService$$anon$1.delegate(FileWatchService.scala:66)
    at play.dev.filewatch.FileWatchService$$anon$1.watch(FileWatchService.scala:79)
    at play.runsupport.Reloader.<init>(Reloader.scala:358)
    at play.runsupport.Reloader$.reloader$lzycompute$1(Reloader.scala:219)
    at play.runsupport.Reloader$.play$runsupport$Reloader$$reloader$1(Reloader.scala:219)
    at play.runsupport.Reloader$.startDevMode(Reloader.scala:229)
    at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.devModeServer$lzycompute$1(PlayRun.scala:79)
    at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.play$sbt$run$PlayRun$$anonfun$$anonfun$$anonfun$$devModeServer$1(PlayRun.scala:79)
    at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:102)
    at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:65)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) java.lang.NumberFormatException: Not a version: 11
java.lang.NumberFormatException:不是版本:11
位于scala.util.PropertiesTrait$class.parts$1(Properties.scala:176)
至少在scala.util.PropertiesTrait$class.isjavas(Properties.scala:180)
至少在scala.util.Properties$.isjavaAtlast(Properties.scala:16)
在play.dev.filewatch.FileWatchService$$anon$1.delegate$lzycompute(FileWatchService.scala:68)
在播放时.dev.filewatch.FileWatchService$$anon$1.delegate(FileWatchService.scala:66)
at play.dev.filewatch.FileWatchService$$anon$1.watch(FileWatchService.scala:79)
播放时。runsupport.Reloader。(Reloader.scala:358)
播放时.runsupport.Reloader$.Reloader$lzycompute$1(Reloader.scala:219)
在play.runsupport.Reloader$.play$runsupport$Reloader$$Reloader$1(Reloader.scala:219)
播放时.runsupport.Reloader$.startDevMode(Reloader.scala:229)
在play.sbt.run.PlayRun$$anonfun$PlayRun任务$1$$anonfun$apply$2$$anonfun$apply$3.devModeServer$lzycompute$1(PlayRun.scala:79)
在play.sbt.run.PlayRun$$anonfun$PlayRun任务$1$$anonfun$apply$2$$anonfun$apply$3.play$sbt$run$PlayRun$$anonfun$$anonfun$$anonfun$$devModeServer$1(PlayRun.scala:79)
在play.sbt.run.PlayRun$$anonfun$PlayRun任务$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:102)
在play.sbt.run.PlayRun$$anonfun$PlayRun任务$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:65)
在scala.Function1$$anonfun$compose$1.apply处(Function1.scala:47)
[trace]堆栈跟踪被抑制:运行上次编译:运行完整输出。
[错误](编译:运行)java.lang.NumberFormatException:不是版本:11

Java 11
此时,Play主要支持Java11。所有模块和示例都已经在使用Java进行测试;我们甚至可以用Java11来构建游戏,我们只需要解决一个已知的问题,与ssl配置有关


根据上面的链接,Play将从2.8开始正式支持Java 11。

您的sbt版本是什么?JDK 11支持至少需要sbt版本1.1.0,或0.13.x系列中的0.13.17。感谢您的回复。我使用的是SBT1.2.8,我看到Scala有一个“JDK兼容性页面”,也许这很有用:我按照上面的链接添加了Scala的兼容版本。运气不好,它在运行命令“sbt run”时抛出了相同的错误。