Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 2.19 KB

File metadata and controls

36 lines (22 loc) · 2.19 KB

Play Requirements

A Play application only needs to include the Play JAR files to run properly. These JAR files are published to the Maven Repository, therefore you can use any Java or Scala build tool to build a Play project. However, Play provides an enhanced development experience (support for routes, templates compilation and auto-reloading) when using the sbt.

Play requires:

  1. One of the Java LTS versions 17 or 21.
  2. sbt - we recommend the latest version

Verifying and installing Java

To check that you have Java SE 17 or higher, enter the following in a terminal:

java -version

You should see something like:

openjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment Temurin-17.0.8+7 (build 17.0.8+7)
OpenJDK 64-Bit Server VM Temurin-17.0.8+7 (build 17.0.8+7, mixed mode)

You can obtain Java SE from Adoptium.

Verifying and installing sbt

If you want to use sbt to create a new project or to run one of the Play sample projects, you need to install the sbt launcher on your system. With sbt installed, you can use our giter8 template for Java or Scala to create your own project with a single command, using sbt new. Find the links on the sbt download page to install the sbt launcher on your system and refer to the sbt documentation for details about how to set it up.

Congratulations!

You are now ready to work with Play! to learn about Play hands-on, try the examples as described on the next page. If you have sbt installed, you can create a new Play project with a [[single command|NewApplication]], using our giter8 Java or Scala template. The templates set up the project structure and dev environment for you. You can also easily integrate Play projects into your favorite [[IDE|IDE]].