title: RemoteActorRefProvider ClassNotFound
body: <p>I'm struggling trying to get remote actors setup in Scala. I'm running Scala 2.10.2 and Akka 2.2.1. </p>
  
  <p>I compile using [I've shortened the paths on the classpath arg for clarity sake]:</p>
  
  <pre><code>$ scalac -classpath "akka-2.2.1/lib:akka-2.2.1/lib/scala-library.jar:akka-2.2.1/lib/akka:akka-2.2.1/lib/akka/scala-reflect-2.10.1.jar:akka-2.2.1/lib/akka/config-1.0.2.jar:akka-2.2.1/lib/akka/akka-remote_2.10-2.2.1.jar:akka-2.2.1/lib/akka/akka-kernel_2.10-2.2.1.jar:akka-2.2.1/lib/akka/akka-actor_2.10-2.2.1.jar:." [file.scala]
  </code></pre>
  
  <p>I've continuously added new libraries trying to debug this - I'm pretty sure all I really need to include is akka-remote, but the others shouldn't hurt.</p>
  
  <p>No issues compiling.</p>
  
  <p>I attempt to run like this:</p>
  
  <pre><code>$ scala -classpath "[same as above]" [application]
  </code></pre>
  
  <p>And I receive a NSM exception:</p>
  
  <pre><code>java.lang.NoSuchMethodException: akka.remote.RemoteActorRefProvider.&lt;init&gt;(java.lang.String, akka.actor.ActorSystem$Settings, akka.event.EventStream, akka.actor.Scheduler, akka.actor.DynamicAccess)
  at java.lang.Class.getConstructor0(Class.java:2810)
  at java.lang.Class.getDeclaredConstructor(Class.java:2053)
  ...
  </code></pre>
  
  <p>Looking into the source code, it appears that Akka 2.2.X's flavor of this constructor takes 4 arguments (the Scheduler is removed). But in Akka &lt; 2.2.X, the constructor takes 5 args.</p>
  
  <p>Thus, I'm thinking my classpath isn't setup quite right. At compile-time, Scala must be finding the &lt;2.2.X flavor. I don't even know where it would be finding it, since I only have Akka 2.2.1 installed.</p>
  
  <p>Any suggestions!? Thanks! (Please don't say to use SBT).</p>