Project

General

Profile

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

Henning Blohm, 16.09.2018 16:41

1 22 Henning Blohm
h1. Install and run Z2 in 5 minutes
2 1 Udo Offermann
3 18 Udo Offermann
[[Step_1_-_What_is_z2|« Step 1 - What is z2]]
4 1 Udo Offermann
5
h2. Prerequisites
6
7 41 Henning Blohm
{{include(Java Version Requirements)}}
8 1 Udo Offermann
9 42 Henning Blohm
It is beneficial to use the Eclipse IDE (Ganymed, Helios, Indigo, Kepler work all fine). There's a small Eclipse plug-in called "Eclipsoid" which makes it easier to develop z2 applications within Eclipse (see [[Step 3 - First steps with Z2 on Git]] for more details). That plugin is also available for Intellij. However you can use any IDE (including vi and notepad) together with z2.
10 1 Udo Offermann
11 28 Udo Offermann
h2. Creating a _home_ for Z2
12 1 Udo Offermann
13 28 Udo Offermann
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.
14 1 Udo Offermann
15
Create a folder called z2-base inside your favorite/home/development/what-ever directory and enter it:
16
17 43 Henning Blohm
<pre><code class="bash">
18 42 Henning Blohm
mkdir z2-base
19
cd z2-base
20
</code></pre>
21 1 Udo Offermann
22 42 Henning Blohm
h2. Installing the z2-base Distribution
23 1 Udo Offermann
24 42 Henning Blohm
The fastest way to start with z2 is by installing the z2-base distribution that contains the z2-core and complete copy of the z2-base.base component repository in one installable archive and requires no access to remote repositories (see also [[How_to_create_your_own_system]] for more details).
25 34 Henning Blohm
26 42 Henning Blohm
In order to install, "download":https://redmine.z2-environment.net/projects/z2-environment/files from the web site and unpackage. 
27 38 Henning Blohm
28 42 Henning Blohm
On Mac-OS or Linux run:
29 38 Henning Blohm
30 43 Henning Blohm
<pre><code class="bash">
31 42 Henning Blohm
wget https://redmine.z2-environment.net/attachments/download/428/z2-base-v2.6.zip
32
unzip z2-base-v2.6.zip
33
</code></pre>
34 38 Henning Blohm
35 42 Henning Blohm
On Windows download the archive and unpack using the Windows explorer. Make sure to unpack into the z2-base folder we created before.
36 38 Henning Blohm
37 42 Henning Blohm
This will create a folder z2-base.core that contains the complete version 2.6 z2-base installation.
38 38 Henning Blohm
39
40 42 Henning Blohm
h2. Starting
41 38 Henning Blohm
42 42 Henning Blohm
Make sure to have a Java Development Kit (JDK) or a Java Runtime Environment of version 9 or 10 installed and executable. Test this by running
43 38 Henning Blohm
44 43 Henning Blohm
<pre><code class="bash">
45 42 Henning Blohm
java -version
46
</code></pre>
47 38 Henning Blohm
48 42 Henning Blohm
Start Z2 by running 
49 38 Henning Blohm
50 43 Henning Blohm
<pre><code class="bash">
51 42 Henning Blohm
z2-base.core/bin/gui.sh
52
</code></pre>
53 38 Henning Blohm
54 42 Henning Blohm
on Mac-OS or Linux, or
55 1 Udo Offermann
56 43 Henning Blohm
<pre><code class="bash">
57 42 Henning Blohm
z2-base.core/bin/gui.bat
58
</code></pre>
59 35 Henning Blohm
60 42 Henning Blohm
on Windows. 
61 1 Udo Offermann
62 42 Henning Blohm
That's it.
63 20 Henning Blohm
64 42 Henning Blohm
h2. What's Next
65
66
This tutorial will continue by showing you how to develop with Z2. If you ask yourself how to add remote repositories, please check out  [[How_to_create_your_own_system]].
67
68 27 Udo Offermann
69 39 Henning Blohm
* [[Step 3 - First steps with Z2 on Git|&raquo; Step 3 - First steps with Z2 on Git]]