summaryrefslogtreecommitdiffstats
path: root/ml/dlib/dlib/java/run_test.sh
blob: 192ea6c8b54b1492d60226859dde6c2c878c8894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# build the jar and shared library of C++ code needed by the JVM
mkdir build
cd build
cmake ..
cmake --build . --config Release --target install
cd ..


# setup paths so the JVM can find our jar and shared library.
export LD_LIBRARY_PATH=.
export DYLD_LIBRARY_PATH=.
export CLASSPATH=myproject.jar:. 

# Now compile and run our java test that calls our C++ code.
javac swig_test.java
java swig_test