Akka Environment Set-Up
Download "Typesafe Stack" from: http://typesafe.com/stack/downloads/stack
and follow the instructions for the Windows version. Typesafe Stack is already
installed on the SE Lab image. Mac users, you are on your own. This
will install all the libraries required for the Java API and a complete
Scala environment.
Running Java programs with Akka:
In
the lab you will need to run the following shell script to set-up your
CLASSPATH correctly. If you installed "typesafe-stack:" on your own
machine, you will need to change the AKKA_HOME variable to match where
you installed it.
AKKA_HOME='c:/Program Files (x86)/typesafe-stack'
AKKA_JARS="${AKKA_HOME}"/config\;"${AKKA_HOME}"/lib/scala-library.jar\;"${AKKA_HOME}"/lib/akka/multiverse-alpha-0.6.2.jar\;"${AKKA_HOME}"/lib/akka/akka-stm-1.2.jar\;"${AKKA_HOME}"/lib/akka/akka-actor-1.2.jar
CLASSPATH=`echo "${CLASSPATH};${AKKA_JARS}" | sed 's/^;/.;/'`
export CLASSPATH
This script (akkalibs-lab.sh) is included in each of the Code listings from some class examples on the main course page. There is also a Makefile that just cleans out *.class files if you want to do a fresh compile.
For example, to run the ActorDemo example in cygwin:
#
cd work/se441/ActorDemo
(wherever you copied the sample files to)
#
. akkalibs-labs.sh
(if you get an error, try
converting doing "dos2unix *.sh" )
# javac ActorDemo.java
# java ActorDemo