RemoteActorRefProvider ClassNotFound

前端 未结 2 912
没有蜡笔的小新
没有蜡笔的小新 2021-01-19 15:06

I\'m struggling trying to get remote actors setup in Scala. I\'m running Scala 2.10.2 and Akka 2.2.1.

I compile using [I\'ve shortened the paths on the classpath ar

相关标签:
2条回答
  • 2021-01-19 15:52

    As noted in another answer, the problem is that scala puts a different version of Akka into the bootclasspath.

    To more directly answer your question (as you said you don't want to use sbt): you can execute your program with java instead of scala. You just have to put the appropriate Scala jars into the classpath.

    Here is a spark-dev message about the problem. The important part is: "the workaround is to use java to launch the application instead of scala. All you need to do is to include the right Scala jars (scala-library and scala-compiler) in the classpath."

    0 讨论(0)
  • 2021-01-19 15:55

    The problem here is that the Scala distribution contains akka-actor 2.1.0 and helpfully puts that in the boot class path for you. We very strongly recommend using a dependency manager like sbt or maven when building anything which goes beyond the most trivial projects.

    0 讨论(0)
提交回复
热议问题