English

Install Play Framework 2.6


This tutorial is going to show you how to install Play Framework 2.6 on Ubuntu distributions by using the SBT package manager.

Pre-requisites

Installation

In older Play versions like 2.6 you would have to download a play.zip file and extract its contents to make use of Play, but on version 2.6, you are going to rely on SBT to interact with the framework.

To get you started, install SBT by running the commands below:

echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt

Validation

Now run the highlighted command to print the SBT version, in my case, the version is 1.1.1:

sbt sbtVersion

[warn] No sbt.version set in project/build.properties, base directory: /home/bgasparotto/play-workspace
[info] Loading global plugins from /home/bgasparotto/.sbt/1.0/plugins
[info] Updating ProjectRef(uri("file:/home/bgasparotto/.sbt/1.0/plugins/"), "global-plugins")...
[info] Done updating.
[info] Set current project to play-workspace (in build file:/home/bgasparotto/play-workspace/)
[info] 1.1.1

SBT is all you need in order to have a working Play.

Hope it helps. Cya!

bgasparotto

Recent Posts

Python function decorator

This guide will show you how to create a Python function decorator with a few…

2 years ago

Got permission denied while trying to connect to the Docker daemon socket

This guide will show you how to fix the error Got permission denied while trying…

2 years ago

Python virtual environment on Intellij IDEA

This guide will show you how to create a Python virtual environment on Intellij IDEA…

2 years ago

Find and kill processes on Linux and Mac by port number

This tutorial will quickly show you how to to find and kill processes on Linux,…

2 years ago

Python: Relocation R_X86_64_PC32 against symbol can not be used when making a shared object Error

This guide shows a possible solution for Python error Relocation R_X86_64_PC32 against symbol can not…

2 years ago

Kubernetes useful commands

I condensed below a cheat sheet of Kubernetes useful commands. I will keep updating this…

2 years ago