<< does not add all the individual jars to the classpath? You might have to look for something else to include all jars in lib and lib/akka. Unfortunately I don't know enough JRuby to tell you how to do it.
Also: you are importing classes (ActorRegistry, Actors) that don't exist in Akka 2.3.8. Please check the latest API docs, and make sure you are not trying an Akka 1.x example (as ActorRegistry would indicate).
So, the following seems to work, maybe you can use that as a starting point:
require "java" $CLASSPATH << "akka-2.3.8/lib/scala-library-2.11.4.jar" $CLASSPATH << "akka-2.3.8/lib/akka/akka-actor_2.11-2.3.8.jar" $CLASSPATH << "akka-2.3.8/lib/akka/config-1.2.1.jar" java_import java.lang.System java_import "akka.actor.ActorRef" java_import "akka.actor.ActorSystem" java_import "akka.actor.Props" java_import "akka.actor.UntypedActor"
- Unable to access Scala's Akka libraries in JRuby
- Best practices with Akka in Scala and third-party Java libraries
- How to access state during transitions in Akka FSM
- Play & Akka and blocking threads for database access
- Scala AKKA access variable or return a value
- Unable to access file in relative path in Scala for test resource
- Unable to access current millisecond time in scala using java.lang.System.currentTimeMillis();
- Scala + Play Framework + Slick + Akka - DB Access from Akka Actor
- Can an Akka anonymous actor access self?
- Akka Quickstart: An illegal reflective access operation has occurred
- Akka combining Sinks without access to Flows
- How to include sigar native libraries in sbt-native-packager Akka build?
- scala, spray, akka - java.lang.OutOfMemoryError: unable to create new native thread
- HiveContext - unable to access hbase table mapped in hive as external table
- Unable to access String value
- Unable to obtain Akka Future Value Akka 1.3-RC2
- Unable to create an actor using UnTypedActorFactory of akka java api
- Unable to run a SourceShape using GraphStage class in Akka Stream
- What is the name of the design pattern for marshalling in libraries like Akka Http or http4s?
- Akka HTTP client throws SSLHandshakeException and is unable to find valid certification path to requested target
- Scala: thread is unable to access variable outside of thread?
- How do I access the full path of a request in Akka HTTP request?
- Unable to access Rest URL using scalaj-Http client with SSL certificates(JKS File)
- Spark worker nodes unable to access file on master node
- How to access external libraries using Play Framework?
- Unable to access to object in a sub-package
- Unable To Receive Kafka Messages at kafka consumer side with akka kafka kerberos configuration
- unable to create another actor in Akka WebSocket
- Access AKKA mailbox object in Actor
- Access to Akka actor outside
More Query from same tag
- How to execute a task or command after another task even if it failed
- Scala group by list of list and subtracts grouped values
- Scala macro expansion of class with companion: type not found
- Scala IDE throwing java.lang.NoClassDefFoundError: org/codehaus/janino/JaninoRuntimeException
- how to creat spark dataframe from a Map(string,any) scala?
- Scala Jackson object mapper setting null instead of default values in case class
- How do I cross-compile a sbt top-level project with Scalajs 0.6 and 1.0.0?
- How to apply changes stored on a dataframe to another dataframe?
- Akka streams reduce to smaller stream
- Scala - Computing strongly connected components - stack overflow error
- Validating more than one message returned from the actor
- Scala - increasing prefix of a sequence
- How to get each double element from scala Iterator[(Double, Double)]
- Why PrefixMap ++ PrefixMap become mutable.Map
- How to make a FIFO Stream (Blocking Queue) thread-safe in Scala (possible deadlock)?
- Does Scala have a value restriction like ML, if not then why?
- Sorted table with a map in Apache Ignite
- How to dynamically check type of an actor
- In Scala, how to circumvent 'inferred type arguments do not conform' error?
- How to get rid of dummy variables when using lazy evaluation in Scala?
- FilteredTextBox in Lift?
- Apache Spark timing forEach operation on JavaRDD
- Scala Play Framework 2.1.1 JSON
- Apache Commons CompressorInputStream and HDFS Gzip files error No Compressor found for the stream signature
- cogroup two RDD in scala
- How to add a new page in Lift framework
- Spark scala most frequent item in a column
- Transformations on CompactBuffer in spark
- groupBy element in a List of String in Scala
- Defining Method with Argument that Cannot be Implicitly Converted