|
|
To run the examples, configure your environment as described in the setup section of [Linux tests](linux-tests).
|
|
|
# Setup
|
|
|
|
|
|
The Java, C++ and Python examples can be run using either *jzmq* or *jeromq*.
|
|
|
|
|
|
Open a shell and go to the root Cameo directory:
|
|
|
|
|
|
Set the *PATH* variable so that the C++ programs are found:
|
|
|
```
|
|
|
$ export PATH=build/examples/cpp:$PATH
|
|
|
```
|
|
|
|
|
|
If necessary, set the *PYTHONPATH* variable so that the *cameopy* module is found.
|
|
|
The path is dependent on the system e.g.:
|
|
|
```
|
|
|
$ export PYTHONPATH=<cameo-build-path>/lib/python3/dist-packages:$PYTHONPATH
|
|
|
```
|
|
|
|
|
|
Select *jzmq* **or** *jeromq* Java library.
|
|
|
|
|
|
Case *jzmq*:
|
|
|
```
|
|
|
$ export CLASSPATH=examples/java/jzmq/target/cameo-tests-jzmq-full.jar
|
|
|
```
|
|
|
|
|
|
You shall define the variable *LD_LIBRARY_PATH* so that *libjzmq.so* is found:
|
|
|
```
|
|
|
$ export LD_LIBRARY_PATH=<path-to-libjzmq>
|
|
|
```
|
|
|
|
|
|
Case *jeromq*:
|
|
|
```
|
|
|
$ export CLASSPATH=examples/java/jeromq/target/cameo-tests-jeromq-full.jar
|
|
|
```
|
|
|
|
|
|
# Requester/Responder
|
|
|
|
... | ... | |