Play Framework: Installation COMP 353 Summer 2015-16 Installing Play 2.0 https://www.playframework.com/documentation/2.0.x/ Installing Prerequisites: JDK 6 or 7 download and install the JDK package Be sure to have the java and javac commands in the current path (you can check this by typing java version and javac -version at the shell prompt) Download the Play 2.0 and extract the archive to a location where you have both read and write access http://download.playframework.org/releases/ Add the play script to your PATH Check that the play command is available play help Install sbt http://www.scala-sbt.org/release/tutorial/Installing-sbton-Windows.html Creating a new application play new myFirstApp This will ask for some information. The application name (just for display, this name will be used later in several messages). The template to use for this application. You can choose either a default Scala application, a default Java application, or an empty application. Setting up your preferred IDE Working with Play is easy. You don’t even need a sophisticated IDE, because Play compiles and refreshes the modifications you make to your source files automatically, so you can easily work using a simple text editor. However, using a modern Java or Scala IDE provides cool productivity features like auto-completion, onthe-fly compilation, assisted refactoring and debugging. Eclipse Play provides a command to simplify Eclipse configuration. To transform a Play application into a working Eclipse project, use the eclipsify command: without the source jars: [My first application] $ eclipsify if you want to grab the available source jars (this will take longer and it’s possible a few sources might be missing): [My first application] $ eclipsify with-source=true You then need to import the application into your Workspace with the File/Import/General/Existing project… menu Go to your application folder Play debug (9999) Eclipse: Right click on application folder Debug asDebug ConfigurationsRemote Java Application Host: localhost Port: 9999 Connection type: standard (socket attach) run (in terminal) Eclipse Add a breakpoint Go to localhost:9000
© Copyright 2026 Paperzz