akka

Getting started with akka

Remarks#

Akka is an open-source toolkit and runtime simplifying the construction of concurrent and distributed applications on the JVM. It implements the actor model known from Erlang.


It should also mention any large subjects within akka, and link out to the related topics. Since the Documentation for akka is new, you may need to create initial versions of those related topics.

Installation or Setup

  1. Install JDK 8 (Windows, Linux) and set the path (Windows).
  2. Install Scala (Linux), For Windows visit https://www.scala-lang.org/download/ download and install binary distribution, set the environment variable for scala in PATH which is in \scala\bin.
  3. Installing Typesafe activator (It contains Scala, Akka, Play, SBT) + project scaffolding and templates. For quick start download the mini-package.
  4. Extract the Typesafe activator and set the PATH to activator-x.x.xx-minimal\bin (It includes the bash and bat scripts to run the activator).
  5. Time to create a sample project and import into your favorite IDE.

  • Type activator new in cmd/terminal.

enter image description here

  1. Download akka-2.0.zip distribution of Akka from https://akka.io/downloads/

  2. Unzip akka-2.0.zip in any directory. (Example - /home/USERNAME/tools/akka-2.0) You would like to have Akka installed.

  3. Set the AKKA_HOME

  4. For Linux.

    # First got to the installed location
    cd /home/USERNAME/tools/akka-2.0
    
    # Export the location as AKKA_HOME
    export AKKA_HOME=`pwd`
    
    # Check if PATH is Exported.    
    echo $AKKA_HOME
    /home/USERNAME/tools/akka-2.0
  5. For Windows

    # First got to the installed location        
    C:\USERNAME\akka> cd akka-2.0
    
    # Set the location as AKKA_HOME
    C:\USERNAME\akka\akka-2.0> set AKKA_HOME=%cd%
    
    # Check if PATH is Exported. 
    C:\USERNAME\akka\akka\akka-2.0> echo %AKKA_HOME%
    C:\USERNAME\akka\akka-2.0

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow