Can I use the new java 8 API as part of the scala Play 2.3.8 project?

I thought it was possible by setting the java version to 1.8 ( java.runtime.version=1.8inside system.properties). But when I tried to compile the project using activator compile, I got all kinds of errors not found: type LocalDateTime.

Am I doing something wrong (by configuration)? Is there a way to overcome this problem or is this a known limitation?

I use

  • Play framework: 2.3.8
  • Scala: 2.11.6
  • Sbt: 0.13.7
+4
source share
1 answer

First check the java version: in cmd - java --version(should point to your installed java).

, "" java 1.8, build.sbt

javacOptions ++= Seq("-source", "1.8", "-target", "1.8")

:)

+3

All Articles