RemoteActorRefProvider ClassNotFound

前端 未结 2 955
没有蜡笔的小新
没有蜡笔的小新 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."

提交回复
热议问题