我正在用 java 做一个 akka 项目并玩 framewrok。
我想用akka远程集群构建一个集群系统。
但是在将依赖项添加到 build.scala 文件之后
我收到以下错误。
[info] Done updating.
[error] java.lang.NoClassDefFoundError: akka/util/FiniteDuration
这是 build.scala 文件中的代码
object ApplicationBuild extends Build {
val appName = "akka-remote"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
"com.typesafe.akka" % "akka-actor" % "2.1-SNAPSHOT" ,
"com.typesafe.akka" % "akka-remote" % "2.1-SNAPSHOT" ,
"com.typesafe.akka" % "akka-kernel" % "2.1-SNAPSHOT"
)
val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
// Add your own project settings here
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases"
)
}
任何人都可以帮助解决这个问题。