0

I'm using GDAL 2.4.1 on MacOS. Now I want to write a small application using the GDAL Java Library. It appears to be just a bridge between my code and the native GDAL Libraries, therefore I have to set GDAL_DATA and DYLD_LIBRARY_PATH environment variables. When I run my little test app I get the following error:

Native library load failed.
java.lang.UnsatisfiedLinkError: no gdalalljni in java.library.path: [/usr/local/Cellar/gdal/2.4.1_1, /Users/user/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .]

org.gdal.gdal.gdalJNI.Open__SWIG_1(Ljava/lang/String;)J
java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.Open__SWIG_1(Ljava/lang/String;)J
    at org.gdal.gdal.gdalJNI.Open__SWIG_1(Native Method)
    [...]

There is no gdalalljni anywhere in the installation directory. Where can I obtain it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.