Project

General

Profile

How to run a sample » History » Version 2

Henning Blohm, 05.09.2012 15:59

1 1 Henning Blohm
h1. How to Run a Sample
2
3
Various z2-based sample system configurations have been prepared as Git repositories. 
4
5
You can run these samples with very few manual steps in a local environment. This How-To describes what you need to do.
6
7 2 Henning Blohm
h2. 0. Pre-Requisites
8
9
All you need is Java Runtime Environment (JRE) of at least version 6. Preferrably, as that is easier to understand a sample, have the Eclipse IDE installed.
10
11 1 Henning Blohm
h2. 1. Prepare a z2-base Installation
12 2 Henning Blohm
13
Create a folder to hold the installation. We will assume that folder is called *sample*
14
15
In *sample* execute
16
17
<pre>
18
git clone http://git.z2-environment.net/z2-base.core
19
</pre>
20
21
Go into *sample/z2-base.core/run/bin* and run 
22
23
<pre>
24
./gui.sh
25
</pre>
26
27
or 
28
29
<pre>
30
gui.bat
31
</pre>
32
33
depending on your operating system. A simple graphical console should open up that displays the console log output of the z2 &lt;home&gt; and worker processes.
34
35
At the first start, the environment will download required resources, which may take a few minutes - depending on your network bandwidth. Subsequent starts will be faster.
36
Eventually the server should be up and you can go to the basic admin view at http://localhost:8080/adm (use z* with password z) to verify everything is cool.
37
38
39
40 1 Henning Blohm
41
h2. 2. Clone the specific sample repository