Ticket #3598 (closed defect: invalid)
Unable to run compiled GDALtest with Java
|Reported by:||raptorland||Owned by:||rouault|
I have successfully compiled and built the Java bindings of GDAL 1.7.2 using the instructions at:
and using SWIG 1.3.38 and GEOS 3.2.2 (which compiles successfully).
I was only able to compile the GDALtest.java in the apps folder. When I try to run GDALtest I receive the following error:
E:\GDAL\gdal-1.7.2\swig\java\apps>java GDALtest GDAL init... Native library load failed. java.lang.UnsatisfiedLinkError?: E:\GDAL\gdal-1.7.2\swig\java\apps\gdaljni.dll: Can't find dependent libraries Exception in thread "main" java.lang.UnsatisfiedLinkError?: org.gdal.gdal.gdalJNI.AllRegister?()V
I receive the same error if I specify the java.library.path in the java command. I do not know what library the gdaljni.dll requires.
Help is greatly appreciated.