source: Dev/branches/play-2.0.1/documentation/manual/gettingStarted/Installing.md @ 322

Last change on this file since 322 was 322, checked in by hendrikvanantwerpen, 13 years ago

Added Play! framework and application with Jena dependency. Working on
the basic things now (login/register), after that start implementing
our data model.

File size: 1.7 KB
Line 
1# Installing Play 2.0
2
3## Prerequisites
4
5To run the Play framework, you need [[JDK 6 or later| http://www.oracle.com/technetwork/java/javase/downloads/index.html]].
6
7> If you are using MacOS, Java is built-in. If you are using Linux, make sure to use either the Sun JDK or OpenJDK (and not gcj, which is the default Java command on many Linux distros). If you are using Windows, just download and install the latest JDK package.
8
9Be 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).
10
11## Download the binary package
12
13Download the [[Play 2.0 binary package | http://download.playframework.org/releases/]] (take the latest 2.0 RC) and extract the archive to a location where you have both read **and write** access. (Running `play` writes some files to directories within the archive, so don't install to `/opt`, `/usr/local` or anywhere else you’d need special permission to write to.)
14
15## Add the play script to your PATH
16
17For convenience, you should add the framework installation directory to your system PATH. On UNIX systems, this means doing something like:
18
19```bash
20export PATH=$PATH:/path/to/play20
21```
22
23On Windows you’ll need to set it in the global environment variables. This means update the PATH in the environment variables and don't use a path with spaces.
24
25> If you’re on UNIX, make sure that the `play` script is executable (otherwise do a `chmod a+x play`).
26
27## Check that the play command is available
28
29From a shell, launch the `play help` command.
30
31```bash
32$ play help
33```
34
35If everything is properly installed, you should see the basic help:
36
37[[images/play.png]]
38
39> **Next:** [[Creating a new application | NewApplication]]
Note: See TracBrowser for help on using the repository browser.