Install Play Framework 2.2.6

How to Install Play Framework

The Play Framework :

Mac: El Capitan (Version : 10.11.5 ) (If something doesn’t work, things may have changed.)

I’ll be installing version 2.2.6 of the framework.

Once you’ve downloaded the zip file — unzip it. Place it in a location that is easy to locate, you’ll need to remember the directory for later. Optional, place in a folder away from the desktop, so to not accidentally delete it.

Open Terminal:

Once in the terminal you’ll need to run a few commands. Since El Capitan changed a few permissions we will need to manually insert our export PATH.

touch ~/.bash_profile
open ~/.bash_profile

This will open .bash_profile in TextEditor or in VIM — depending on your environment.

In here we get to set the PATH to run the exec file “play”. The code should look something like this…

#Settings for Play
export PATH
export PATH=”$HOME/Path/to/the/folder/play-2.2.6:$PATH”
export PATH="$HOME/Path/to/the/folder/play-2.x.x:$PATH"

Save the document and hit “cmd+q” to close the file. Once back in the terminal type this:

source ~/.bash_profile

This will force the changes to take place in the current terminal. To make sure it worked run this command in the terminal.

echo $PATH

You should see something like this being displayed in the terminal.


If you see this, you’ve successfully modified the .bash_profile. Now it’s time to make sure you’ve successfully installed the play framework. Run:


If you see this:

(A cool "Play" image)
play 2.2.6 built with Scala 2.10.3 (running Java 1.8.0_92),
This is not a play application!
Use `play new` to create a new Play application in the current directory,
or go to an existing application and launch the development console using `play`.
You can also browse the complete documentation at

You’ve successfully completed the installation process. Congratz !