English

Set up Play project on Eclipse

This tutorial is going to show you how to set up a Play Framework 2.6 project on Eclipse IDE.

Pre-requisites

Sbteclipse plugin

First you need to install the sbteclipse plugin to enable the command sbt eclipse.

When declaring plugins you have the options of declaring them globally or at the project level, for the sake of simplicity we are going to declare it globally in our SBT installation.

Go to the <your_user>/.sbt/<version> folder. If you don’t have a plugins directory, create one:

mkdir plugins cd plugins

Inside of the plugins folder, create a new file called plugins.sbt with the following content:

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.4")

Generate the Eclipse project

Inside of an existing Play project (check this tutorial if you don’t know how to create one), run the following command to add the Eclipse nature to your project:

sbt eclipse

Import the project on Eclipse

Finally, go to your Eclipse IDE an perform a File -> Import -> Existing Projects into Workspace and your Play project will be available for importing:

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