Quantcast

import akka in shell

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
igx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

import akka in shell

igx
How can I import akka in scala repl ?
I want to create an actor in the repl . but I can't import akka. 

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: import akka in shell

Rafał Krzewski
You need to have Akka jars on the classpath.
Probably the easiest way to do it is to use Ammonite REPL http://www.lihaoyi.com/Ammonite/

import $ivy.`com.typesafe.akka:akka-actor_2.11:2.4.17`
import akka.Actor

cheers,
Rafał

W dniu sobota, 11 lutego 2017 23:01:27 UTC+1 użytkownik Avi napisał:
How can I import akka in scala repl ?
I want to create an actor in the repl . but I can't import akka. 

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...