Hi list, I've tried to ask Gdal about installing Gdal java bindings in Windows 10, but havn't had any luck so far. I got the tips from dgal-dev list that I should ask you since GeoTools/GeoServer uses gdalalljni.dll.
Setup: Windows 11 64-bit with x64 based processor PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 13, GenuineIntel PROCESSOR_LEVEL=6 The Java I'm using is: OpenJDK's 8u262-b1, x86 64bit JRE Installed release-1928-x64-gdal-3-2-1-mapserver-7-6-2-libs.zip in C:\Program Files\Gdal_321 Then I copied the gdalalljni.dll to C:\Program Files\OpenJDK\jdk-8.0.262.10-hotspot\jre\bin Added the following to the system path: C:\Program Files\OpenJDK\jdk-8.0.262.10-hotspot\jre\bin; C:\Program Files\Gdal_321\bin\gdal\java; C:\Program Files\Gdal_321\bin; C:\Program Files\Gdal_321; C:\Program Files\Gdal_321\bin\gdal\apps; C:\Program Files\Gdal_321\bin\gdal\python\osgeo; C:\Program Files\Gdal_321\bin\proj7\apps C:\Program Files\Gdal_321\bin\ms\apps; C:\Program Files\Gdal_321\bin\gdal\csharp; C:\Program Files\Gdal_321\bin\curl; Added the following system variables: GDAL_DATA=C:\Program Files\Gdal_321\bin\gdal-data GDAL_DRIVER_PATH=C:\Program Files\Gdal_321\bin\gdal\plugins;C:\Program Files\Gdal_321\bin\gdal\plugins-external;C:\Program Files\Gdal_321\bin\gdal\plugins-optional JAVA_HOME=C:\Program Files\OpenJDK\jdk-8.0.262.10-hotspot\jre PROJ_LIB=C:\Program Files\Gdal_321\bin\proj7\share Then I added C:\Program Files\Gdal_321\bin\gdal\java\gdal.jar to my class-path When I'm executing the program I get: Native library load failed. java.lang.UnsatisfiedLinkError: C:\Program Files\OpenJDK\jdk-8.0.262.10-hotspot\jre\bin\gdalalljni.dll: The specified procedure cannot be found Then I've installed dependency Walker 22_x64. I don't know how to use it, but when I load gdalalljni.dll I get the following errorcodes: Error: At least one required implicit or forwarded dependency was not found. Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module. Error: Modules with different CPU types were found. Error: A circular dependency was detected. Warning: At least one delay-load dependency module was not found. Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. I can also see that a lot of DLL-files are not found e.g. EXT-MS-WINDOWSCORE-DEVICEINFO-L1-1-0.DLL... In the module window of dependency walker I can see that there is 2 different CPU types, the DLL-files with x86 are marked red while the x64 are written in black (CPU-column). E.g. c:\program files\openjdk\jdk-8.0.262.10-hotspot\jre\bin\API-MS-WIN-CORE-DEBUG-L1-1-0.DLL are marked with red text x86 in the CPU column. In the "tree" under GDALALLJNI.DLL some DLLs are marked with a red icon, e.g API-MS-WIN-CRT-HEAP-L1-1-0.DLL. When I search for that DLL-file in my computer it is found under several libraries e.g C:\Windows\System32\downlevel, C:\Program Files (x86)\Citrix\ICA Client\Receiver, C:\Program Files\OpenJDK\jdk-8.0.262.10-hotspot\jre\bin and a lot of other places... Is there someone who please can see what I've done wrong/missed? Kind regards, Paul
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users