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 | |
---|
5 | To 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 | |
---|
9 | 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). |
---|
10 | |
---|
11 | ## Download the binary package |
---|
12 | |
---|
13 | Download 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 | |
---|
17 | For convenience, you should add the framework installation directory to your system PATH. On UNIX systems, this means doing something like: |
---|
18 | |
---|
19 | ```bash |
---|
20 | export PATH=$PATH:/path/to/play20 |
---|
21 | ``` |
---|
22 | |
---|
23 | On 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 | |
---|
29 | From a shell, launch the `play help` command. |
---|
30 | |
---|
31 | ```bash |
---|
32 | $ play help |
---|
33 | ``` |
---|
34 | |
---|
35 | If 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.