-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathINSTALL
188 lines (115 loc) · 4.23 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
============
INSTALLATION
============
1. INSTALLATION FROM BINARY DISTRIBUTION
========================================
1.1 Prerequisits
----------------
For the compilation of TIDNotifJ next software is needed:
* Sun Java J2SE SDK 1.4 or later. Download
* Subversion Client. Download
* Apache Ant 1.6 or later. Download
* TIDIdlc
See TIDorbJ Compilation and Installation HOWTO where the installation of
all this required software is explained.
Main Linux distributions (Debian, Ubuntu, RedHat, ...) have available
installation packages for this components.
1.2 Installation
----------------
Download the zipped binaries in the applications directory <install_dir>
and unzip with:
$ tar xfvz TIDorbJ_X.Y.Z.tgz
or
$ gzip -d TIDorbJ_X.Y.Z.tgz | tar xfv
You can download directly the TIDorbJ installation binaries from MORFEO Forge
at: https://forge.morfeo-project.org/frs/?group_id=8
1.3 Execution
-------------
To execute TIDorbJ scripts in the shell, next environment variables should be
set.
· For Unix
--------
export JAVA_HOME=<path to jdk>
export TIDORBJ_HOME=<install_dir>/TIDorbJ
export PATH=$PATH:$TIDNOTIFJ_HOME/bin/
Runs with:
$TIDNOTIFJ_HOME/bin/start
· For Windows
-----------
SET JAVA_HOME=<path to jdk>
SET TIDORBJ_HOME=<install_dir>\TIDorbJ
SET PATH=%PATH;%TIDORBJ_HOME%\bin
Runs with:
$TIDORBJ_HOME\bin\start.bat
2. INSTALLATION FROM SOURCE DISTRIBUTION
========================================
2.1 Prerequisits
----------------
For the compilation of TIDorbJ next software is needed:
· Sun Java J2SE SDK 1.4 or later
· Subversion Client
· Apache Ant 1.6 or later
· TIDIdlc
Main Linux distributions (Debian, Ubuntu, RedHat, ...) have available
installation packages for this components.
Optionally, TIDorbJ can be compiled with the Eclipse IDE.
· Needed Software Installation under Debian & Ubuntu Linux
--------------------------------------------------------
- For Ubuntu Linux:
$ sudo apt-get install subversion ant sun-java5-jdk
<input user's password>
- For Debian:
$ su
<input root's password>
$ apt-get install subversion ant sun-java5-jdk
Also, Other versions of Sun's JDK can also be installed from Java at Sun
MicroSystems.
· Java Virtual Machine installation from binaries
-----------------------------------------------
Download the installation zipped file from Java at Sun MicroSystems.
You should create a directory at your $HOME directory where the installation
will be done:
$ mkdir $HOME/java
Unzip the installation binary file (for examle, jdk-1_5_0_07-linux-586.bin):
$ cd $HOME/java
$ chmod +x jdk-1_5_0_07-linux-586.bin
$ ./jdk-1_5_0_07-linux-586.bin
Follow the installation program instructions to install the Java Development
Kit.
Finally, delete the downloaded file:
$ rm jdk-1_5_0_07-linux-586.bin
2.2 TIDorbJ Compilation
-----------------------
· Source Code Download
--------------------
First of all, create a work directory where the source code will be
downloaded:
$ cd <workspace>
$ mkdir Morfeo
$ cd Morfeo
Download the sorce code from the TIDorbJ Project's Subversion repository:
$ svn checkout https://svn.morfeo-project.org/svn/tidorbj/trunk/TIDorbJ
The Subversion client would ask for accept the server's certificate. In this
case, Accept it.
· Compilation with Ant
--------------------
Go to the TIDorbJ directory where the source code has been downloaded and
compile it with the command:
$ cd TIDorbJ
$ ant install
NOTE: Change the PATH if you want to compile TIDorbJ with other JDK version
You can check the JDK version configured in the environment with:
$ java -version
2.3 TIDNotifJ Installation
------------------------
· Installation from compiled code
-------------------------------
Once compiled TIDorbJ, from the source code directory (TIDorbJ), copy the
directory dist with the generated binaries of TIDNotifJ to the usual
applications directory (for example /opt):
$ cp -r dist <install_dir>/TIDorbJ_X.Y
In Linux, update the execution flags of the scripts to launch the compiler:
chmod +x <install_dir>/TIDorbJ_X.Y/bin/*
2.4 Execution
-------------
Idem "1.3 Execution" previous section.