Book Image

Scala for Java Developers

By : Thomas Alexandre
Book Image

Scala for Java Developers

By: Thomas Alexandre

Overview of this book

Table of Contents (19 chapters)
Scala for Java Developers
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Getting started with the classic Play distribution


Download the classic Play distribution from http://www.playframework.com/download, and unpack the .zip archive in a directory of your choice. Add this directory to your path (so that running the play command anywhere on your filesystem will create a new application). With this alternative, you can open a terminal window and enter the following command:

> play new <PROJECT_NAME>   (for example  play new playsample)

The following output will be displayed:

We just need to press Enter as we have already given a project name on the previous command. The following will be displayed on pressing Enter:

Which template do you want to use for this new application? 
  1             - Create a simple Scala application
  2             - Create a simple Java application
> 1
OK, application playsample is created.

Have fun!

That's all; in less than a minute, we already have a fully working web app that we can now execute. As it is an SBT project...