I'm having an issue with a scala script using 2.7.7 - Main$$anon$1$$anonfun$1$$anonfun$apply$2
- by Uruhara747
This is the code I used from a book...
import scala.actors.Actor._
val countActor = actor{
loop {
react{
case "how many?" = {
println("I've got " + mailboxSize.toString + " messages in my mailbox.")
}
}
}
}
countActor ! 1
countActor ! 2
countActor ! 3
countActor ! "how many?"
countActor ! "how many?"
countActor ! 4
countActor ! "how many?"
The error
java.lang.NoClassDefFoundError: Main$$anon$1$$anonfun$1$$anonfun$apply$2