I'm trying org.gdal library on Ubuntu.
<dependency>
<groupId>org.gdal</groupId>
<artifactId>gdal</artifactId>
<version>2.3.3</version>
</dependency>
And got runtime error: Native library load failed. java.lang.UnsatisfiedLinkError: no gdalalljni in java.library.path
1) Before this I installed gdal:
sudo apt-get install gdal-bin
sudo apt-get install libgdal-dev
There are no any gdalalljni files installed.
2) export LD_LIBRARY_PATH=/usr/lib which contains files libgdal.a, libgdal.so, libgdal.so.20 libgdal.so.20.3.2 and not contains any gdalalljni
3) export GDAL_DATA=/usr/share/gdal/2.2
4) set VM options -Djava.library.path="/usr/lib/"
I tried some advices such as http://geoexamples.blogspot.com/2012/05/running-gdal-java.html Here is about 1.9 release. I not found swig/java directory in my installation of 2.2.
How to use last releases of gdal in java on Ubuntu?