run.sh 1.36 KB
Newer Older
1
export LD_LIBRARY_PATH=../../lib/c/
2 3 4 5 6
echo
echo "********************************************"
echo "***   Running example for version 2013   ***"
echo "********************************************"
echo
7

8
java -cp .:../../lib/java/labcomm2014.jar:gen Encoder encoded_data
Sven Robertz's avatar
Sven Robertz committed
9
./example_decoder encoded_data
10 11

PYTHONPATH=../../lib/python:gen ./example_encoder.py encoded_data
12
java -cp .:../../lib/java/labcomm2014.jar:gen Decoder encoded_data
13

Sven Robertz's avatar
Sven Robertz committed
14
./example_encoder encoded_data
15
java -cp .:../../lib/java/labcomm2014.jar:gen Decoder encoded_data
16 17

echo "running python decoder (from wiki_example):"
18
PYTHONPATH=../../lib/python ../wiki_example/example_decoder.py encoded_data LabComm2014
19

20 21 22 23 24 25
echo
echo "*******************************************************"
echo "***   Running C and Java example for version 2006   ***"
echo "*******************************************************"
echo

26
java -cp .:../../lib/java/labcomm2006.jar:gen06 Encoder06 encoded_data06
27
./example_decoder06 encoded_data06
28 29

PYTHONPATH=../../lib/python:gen ./example_encoder.py encoded_data06 LabComm2006
30
java -cp .:../../lib/java/labcomm2006.jar:gen06 Decoder06 encoded_data06
31

32
./example_encoder06 encoded_data06
33
java -cp .:../../lib/java/labcomm2006.jar:gen06 Decoder06 encoded_data06
34 35 36

echo "running python decoder (from wiki_example):"
PYTHONPATH=../../lib/python ../wiki_example/example_decoder.py encoded_data06 LabComm2006