Auxiliary Tools :: Play Framework :: First Application Example

 

activator new first
Select 5) play-java
The command creates a new Play Java application called first.
cd first
$ activator
From CLI activator:
[first] $ run
And next in browser:
localhost:9000
Setting up Eclipse
In plugins.sbt add:
//eclipse
addSbtPlugin(“com.typesafe.sbteclipse” % “sbteclipse-plugin” % “4.0.0”)
Restart activator.
[first] $ eclipse
Import project first.
first Application Change
  • Activator CLI: run
  • Change in HomeController.java: public Result index() {return ok(“My First Play Application”);}
  • restart browser (localhost:9000):

 

Leave a Reply