我使用run
内的activator
命令运行我的播放应用程序。当我打开索引页面时,在编译源代码后,控制台会打印
[warn] Note: Some input files use unchecked or unsafe operations.
[warn] Note: Recompile with -Xlint:unchecked for details.
我该怎么做?如何使用该参数重新编译?我尝试使用activator -J-Xlint:unchecked
和JAVA_OPTS="-Xlint:unchecked" activator
运行激活器,两者都导致了
Unrecognized option: -Xlint:unchecked
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
答案 0 :(得分:8)
将此添加到您的build.sbt:
javacOptions += "-Xlint:unchecked"