使用Java 11播放2.2.2 [英] Play 2.2.2 with Java 11
问题描述
我有一个播放2.2.2 项目,该项目通常与激活器1.3.12 一起运行.现在,我更新为 Java 11 ,激活器抱怨如下:
I have a Play 2.2.2 project I normally run with the activator 1.3.12. Now I updated to Java 11 and activator complains like:
The java installation you have is not up to date
activator requires at least version 1.6+, you have
version 11
Please go to http://www.java.com/getjava/ and download
a valid Java Runtime and install before running activator.
如果我尝试直接使用 sbt 1.2.4 运行应用程序,则会收到未解决的依赖路径错误
If I try to run the application with sbt 1.2.4 directly I get an unresolved dependency path error
Note: Unresolved dependencies path:
[warn] com.typesafe.play:sbt-plugin:2.2.2 (scalaVersion=2.12, sbtVersion=1.0) (/myProject/project/plugins.sbt#L8-9)
[warn] +- default:myProject-build:0.1.0-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: com.typesafe.play#sbt-plugin;2.2.2: not found
有人对如何使这个旧项目在Java 11下运行有任何建议吗?
Does anyone have any advice on how to get this old project running under Java 11?
推荐答案
对于SBT,请记住,SBT是Scala和Java项目的开源构建工具,类似于Java的Maven和Ant,按以下顺序排列:想法,Scala具有与Java兼容性的最低和最高要求,在此链接中您可以找到以下信息:
In the case of SBT, remember that SBT is an open-source build tool for Scala and Java projects, similar to Java's Maven and Ant, in this order of ideas, Scala has a minimum and maximum requirement for compatibility with Java, in this link you can find the information:
https://docs.scala-lang.org/overviews /jdk-compatibility/overview.html
我应该将您的Java版本降级到10.
I should make a downgrade of your java version to 10.
祝你好运.
这篇关于使用Java 11播放2.2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!