aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run-java-scanner01.sh
blob: fec669f21fb77ee6f8e96f4874bfb6baa3c78038 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

#
# ../scripts/run-java-scanner01.sh -mac C0:26:DA:01:DA:B1 -mode 0 2>&1 | tee ~/dbt_scanner_java.log
#

if [ ! -e lib/java/tinyb2.jar -o ! -e bin/java/ScannerTinyB01.jar -o ! -e lib/libtinyb.so -o ! -e lib/libdirect_bt.so ] ; then
    echo run from dist directory
    exit 1
fi
java -cp lib/java/tinyb2.jar:bin/java/ScannerTinyB01.jar -Djava.library.path=`pwd`/lib ScannerTinyB01 $*