Project

General

Profile

Step 2 - Install and run in 5 minutes » History » Version 1

Udo Offermann, 07.09.2012 11:46

1 1 Udo Offermann
h1. How to install z2 v21
2
3
[[What_is_z2|prev]] :: [[Wiki|home]] :: [[First_steps_with_z2|next]]
4
5
h2. How to install z2-environment
6
7
Installation of the z2-environment is very easy. We tested the installation on Linux, Mac OS X and Windows Vista.
8
9
h2. Prerequisites
10
11
You need a properly setup JDK 6 - that's all. 
12
A halfway modern system will do. 
13
14
It is benefical to use the Eclipse IDE (Ganymed, Helios or Indigo work all fine). There's a small Eclipse plugin called "Eclipsoid" which makes it easier to develop z2 applications within Eclipse (see [[First steps with z2]] for more details). However you can use any IDE (including vi and notepad) together with z2.
15
16
h2. Creating a _home_ for z2
17
18
This is a best practice approach (and other approaches are possible). We recommend to keep the repositories and the IDE workspace close together. This way we don't need to adjust the path settings in the z2 configuration files and they can remain relative paths.
19
20
Create a folder called z2-base inside your favorite/home/development/what-ever directory and enter it:
21
22
<pre>
23
    ~/dev$ mkdir z2-base
24
    ~/dev$ cd z2-base
25
</pre>
26
27
h2. Cloning the sources
28
29
As described in [[What_is_z2]] the z2-base project contains several repositories. 
30
You start always with the _core_ repository:
31
32
<pre>
33
    ~/dev/z2-base$ git clone http://git.z2-environment.net/z2-base.core
34
    Cloning into core...
35
    ~/dev/z2-base$ cd z2-base.core
36
    ~/dev/z2-base/z2-base.core$
37
</pre>
38
39
This will checkout the branch "v2.1" as you can verify via @git branch@. 
40
41
42
##### TBC #####
43
44
    ~/dev/z2_base$ cd z2-base.core
45
    ~/dev/z2_base/core$ ./gitsetup.sh
46
    Cloning/Updating the following repos: [core base samples tools] from http://git.z2-environment.net/z2-base
47
    Cloning http://git.z2-environment.net/z2-base.core (branch=v2.0)
48
    Cloning into base...
49
    Cloning http://git.z2-environment.net/z2-base.base (branch=v2.0)
50
    Cloning into samples...
51
    Cloning http://git.z2-environment.net/z2-base.samples (branch=v2.0)
52
    Cloning into tools...
53
    done
54
    
55
On Windows you run `gitsetup.bat` instead of `./gitsetup.sh`; this takes a minute (depending on your internet access).
56
57
h2. Start the z2-environment
58
59
If you have setup JDK 6 properly you can start the z2-environment right away:
60
61
    ~/dev/z2_base/core$ cd run/bin
62
    ~/dev/z2_base/core$ ./go.sh
63
64
Or on windows `cd \run\bin` and then `go.bat`. You will see something like this:
65
66
    07/26 13:43:19 [1]...hers.HomeLauncher[800]: Z2 Home Launcher, (c) ZFabrik Software KG 2010, 2011
67
    07/26 13:43:19 [1]...ProcessRunnerImpl[800]: Running core build 201107181235 as udoo in z2 home /Users/udoo/dev/git/z2_b/core/run/bin/../.., timezone Europe/Berlin, language de, region null
68
    07/26 13:43:19 [1]...ProcessRunnerImpl[800]: Using VM v1.6.0_26 by Apple Inc. at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home on Mac OS X (arch: 10.6.8)
69
70
    ...
71
72
    07/26 13:43:27 [22]...nment/webWorker.2[800]: 2011-07-26 13:43:27.949:INFO::jetty-6.1.22
73
    07/26 13:43:27 [22]...nment/webWorker.2[800]: 2011-07-26 13:43:27.977:INFO::Started SelectChannelConnector@0.0.0.0:8080
74
    
75
    ...
76
77
    07/26 13:43:33 [1]...hers.HomeLauncher[800]: Completed home process initialization
78
79
    press (q)uit, (c)omponents, (f)oundation props, (s)ystem props, s(y)nc repo, (v)erify, (g)c:>
80
81
This means the z2-environment is up and running and excepting requests on localhost port 8080.  
82
83
[[What_is_z2|prev]] :: [[Wiki|home]] :: [[First_steps_with_z2|next]]