Pre requirement:
- Compiled LightGBM library
- cmake 3.5
- exported JAVA_HOME
- Create symlink
lib_lightgbm.so
->/usr/lib/lib_lightgbm.so
so linker can find the library
sudo ln -s {your path}/lib_lightgbm.so /usr/lib/lib_lightgbm.so
- Compile native code run in project directory
mkdir build; cd build
cmake ..
make -j
- Run main in Test class with parameter
-Djava.library.path=build