Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shabin-slr/c50a1a1420daa4cb9b0e97ea9476f6d0 to your computer and use it in GitHub Desktop.
Save shabin-slr/c50a1a1420daa4cb9b0e97ea9476f6d0 to your computer and use it in GitHub Desktop.

Step by step to install Scala + Play Framework in Ubuntu 14.04 with Activator.

Install Scala

sudo apt-get remove scala-library scala
wget http://www.scala-lang.org/files/archive/scala-2.11.6.deb
sudo dpkg -i scala-2.11.6.deb
sudo apt-get update
sudo apt-get install scala

Download and Install Play (the folder should have permission to write)

cd /opt
wget http://downloads.typesafe.com/typesafe-activator/1.3.2/typesafe-activator-1.3.2-minimal.zip
unzip typesafe-activator-1.3.2-minimal.zip
mv activator-1.3.2-minimal activator

Add the activator script to your PATH and execute Activator

cd /opt/activator
export PATH=$PATH:/opt/activator
source ~/.bashrc
chmod a+x activator
./activator

After that, check if the activator command is available activator -help So then, create your project

activator new my-first-app play-scala
cd my-first-app

To create play with console:

activator

To create play with UI:

activator ui

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment