title: akka sample Hello! gives error on receive method
body: <p>I will not paste the code here, I simply have this:<br /></p>
  
  <p><a href="https://github.com/akka/akka/blob/master/akka-samples/akka-sample-hello/src/main/scala/sample/hello/Main.scala" rel="nofollow">https://github.com/akka/akka/blob/master/akka-samples/akka-sample-hello/src/main/scala/sample/hello/Main.scala</a> <br /></p>
  
  <p>And I wonder why Eclipse gives error on </p>
  
  <pre><code>def receive
  </code></pre>
  
  <p>saying:</p>
  
  <blockquote>
    <p>type mismatch; found : Any => Unit required: akka.actor.Actor.Receive
    (which expands to) PartialFunction[Any,Unit]</p>
  </blockquote>
  
  <p>I suppose it's something about the fact that there are some "case" statements inside a block without a "match" in front.</p>
  
  <p>How can I remove the error, or how can I make eclipse runnning well with Akka?</p>