Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • Save patarkf/ab2c976b6f89edf90f63 to your computer and use it in GitHub Desktop.
Save patarkf/ab2c976b6f89edf90f63 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:

@yubrajpokharel
Copy link

it says ::
(Running the application, auto-reloading is enabled) ---
[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Ctrl+D to stop and go back to the console...)

and i am not being able to run it will you help me to resolve this issue
also after installing play command is also not working it says command not supported
I am using ubuntu 14.04

@kwanso-aleem
Copy link

How I can 1.6+ version of the activator?

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