InstallationJava » History » Version 4

S. Wrede, 06/28/2011 09:38 PM

1 1 S. Wrede
h1. Installation of Java Implementation
2 1 S. Wrede
3 3 S. Wrede
For compilation and installation of the Java bindings, we use the "Ant":http://ant.apache.org/ build tool. 
4 2 S. Wrede
5 1 S. Wrede
h2. External Dependencies
6 1 S. Wrede
7 1 S. Wrede
* libprotobuf-java
8 1 S. Wrede
* ant
9 1 S. Wrede
* Optional:
10 1 S. Wrede
** javadoc
11 1 S. Wrede
12 4 S. Wrede
h2. Installation of RSB Core
13 1 S. Wrede
14 1 S. Wrede
* Download src from SVN (see front page)
15 4 S. Wrede
* Invoke ant with a number of properties for the build configuration:
16 1 S. Wrede
17 4 S. Wrede
| Ant Property   | Meaning                              |  Example                     |
18 4 S. Wrede
| pbuf.protoc    | Location of Protobuf Compiler        | /usr/bin/protoc              |
19 4 S. Wrede
| pbuf.protopath | Location of RSB Protocol IDL Files   | /vol/cit/share/RSBProtocol   |
20 4 S. Wrede
| pbuf.lib       | Location of Protobuf Library         | /usr/share/java/protobuf.jar |
21 4 S. Wrede
| spread.daemon  | Location of Spread Daemon Executable | /vol/cit/sbin/spread         |
22 4 S. Wrede
23 4 S. Wrede
An exemplary ant dist command to build the resulting jar library may look as follows:
24 4 S. Wrede
25 4 S. Wrede
<pre>
26 4 S. Wrede
ant -Dpbuf.protoc=/usr/bin/protoc -Dpbuf.protopath=/vol/cit/share/RSBProtocol -Dpbuf.lib=/usr/share/java/protobuf.jar -Dspread.daemon=/vol/cit/sbin/spread dist
27 4 S. Wrede
</pre>
28 4 S. Wrede
29 1 S. Wrede
* @ant install@ installs jars to prefix of your choice, e.g., ${prefix}/share/java (defined via property)
30 4 S. Wrede
31 4 S. Wrede
h2. Installation of RSB-XML
32 4 S. Wrede
33 4 S. Wrede
* for rsb-xml, you need to additionally install XOM (available via ubuntu)
34 4 S. Wrede
* and pass the following parameters to the ant build script
35 4 S. Wrede
36 4 S. Wrede
| Ant Property   | Meaning                              |  Example                      |
37 4 S. Wrede
| pbuf.lib       | Location of Protobuf Library         | /usr/share/java/protobuf.jar  |
38 4 S. Wrede
| spread.daemon  | Location of Spread Daemon Executable | /vol/cit/sbin/spread          |
39 4 S. Wrede
| xom.lib        | Location of XOM XML Library          | /usr/share/java/xom-1.2.1.jar |
40 4 S. Wrede
| rsb.lib        | Location of RSB Core Library         | /vol/cit/lib/java/RSBJava.jar |