Java Play akka项目从jdk8迁移到jdk11

编程入门 行业动态 更新时间:2024-10-11 07:30:20
本文介绍了Java Play akka项目从jdk8迁移到jdk11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试将使用play和Akka框架在jdk8上构建的项目迁移到jdk11.在此过程中,出现以下错误.有人可以让我知道为什么会引发错误吗? 以下是我使用的版本:

I am trying to migrate the project which was built on jdk8 using play and Akka framework to jdk11. During the process, I am getting the below error. Could someone please let me know why is the error being thrown? Below are the versions I am using:

  • JDK-11
  • SCala 2.12.8
  • 播放2.6.7
  • 阿卡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

推荐答案

www.lightbend/blog/roadmap-revealed-for-play-2.8-and-lagom-1.6

Java 11 目前,Play主要支持Java11.所有模块和示例都已经在使用Java进行了测试.我们甚至还可以使用Java 11来构建Play本身,只有一个需要解决的已知问题与ssl-config有关.

Java 11 At this point, Play mostly supports Java 11. All the modules and samples are already being tested using Java; we even have Play itself building with Java 11, there is only a know issue we need to solve, related to ssl-config.

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

According to the link above, Play will officially support Java 11 since 2.8.

更多推荐

Java Play akka项目从jdk8迁移到jdk11

本文发布于:2023-07-15 13:13:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1111419.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   Play   Java   akka

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!