hksdk/CH-HCNetSDKV6.1.9.47_build2.../Demo示例/2-Java开发示例/2-报警布防监听/AlarmDemo/run.sh

27 lines
452 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
cd ./src
#编译 引入需要的依赖的jar以及java文件以及运行文件
CP+=../lib/jna.jar:
CP+=../lib/examples.jar:
echo "--> ClassPath: $CP"
#SRC_LIB=com/netsdk/lib/*.java
SRC_EXAMPLE=Test1/*.java
BIN+=../bin
echo "--> Bin $BIN"
javac -cp $CP $SRC_EXAMPLE -d $BIN
#指定库的路径
export LD_LIBRARY_PATH=../lib/:../lib/HCNetSDKCom/
#运行
cd ../bin
echo "--> path:" pwd
DEMO=Test1/Test1
java -cp $CP:. $DEMO
cd -