[gdal-dev] Gdal Java

paul.malm at lfv.se paul.malm at lfv.se
Tue Apr 6 22:18:55 PDT 2021


When I copy ALL the dll-files in gdal\bin (geos.dll, geos_c.dll etc.) to my java-jre\bin folder (where I also copied the gdalalljni.dll) it seems to work. Couldn’t this be added in the installation instructions some were?

Kind regards,
Paul

-----Ursprungligt meddelande-----
Från: Malm, Paul (Operations AIM) 
Skickat: den 31 mars 2021 14:48
Till: 'jratike80' <jukka.rahkonen at maanmittauslaitos.fi>
Ämne: SV: [gdal-dev] Gdal Java

Thanks for the tips, I've now sent a mail to GeoTools.
/Paul

-----Ursprungligt meddelande-----
Från: gdal-dev <gdal-dev-bounces at lists.osgeo.org> För jratike80
Skickat: den 31 mars 2021 13:29
Till: gdal-dev at lists.osgeo.org
Ämne: Re: [gdal-dev] Gdal Java

Klicka bara p  l nkar och  ppna bilagor om du litar p  avs ndaren och vet att inneh llet  r s kert.
Hi,

Perhaps you could ask from the Geotools/Geoserver teams how they manage to get their GDAL plugin https://docs.geotools.org/stable/userguide/library/coverage/imageio.html
https://docs.geoserver.org/stable/en/user/data/raster/gdal.html to work.

-Jukka Rahkonen-


paul.malm wrote
> Hi,
> further additional information.
> 
> I'm using
> 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.
> /Paul
> 
> 
> Från: Malm, Paul (Operations AIM)
> Skickat: den 31 mars 2021 10:50
> Till: 'Stefan Moebius' <

> Stefan.Moebius@

> >; '

> gdal-dev at .osgeo

> ' <

> gdal-dev at .osgeo

> >
> Ämne: SV: Gdal Java
> 
> Hi, additional information.
> All DLL-files in Dependency Walker under the tree of GDALALLJNI.dll 
> that are placed in C:\program 
> files\openjdk\jdk-8.0.262.10-hotspot\jre\bin\
> are marked with a red "frame" icon.
> /Paul
> 
> Från: Malm, Paul (Operations AIM)
> Skickat: den 31 mars 2021 10:00
> Till: 'Stefan Moebius' <

> Stefan.Moebius@

> >; '

> gdal-dev at .osgeo

> ' <

> gdal-dev at .osgeo

> >
> Ämne: SV: Gdal Java
> 
> Hi,
> 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\bin
> and a lot of other places...
> 
> My JAVA_HOME points to C:\Program
> Files\OpenJDK\jdk-8.0.262.10-hotspot\jre\bin. It is a x64 Java version.
> My OS is windows10 with a x64 based processor.
> 
> Can this be any help finding the solution on my run time error:
> 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
> 
> Kind regards,
> Paul
> Från: gdal-dev <

> gdal-dev-bounces at .osgeo

> > För Stefan Moebius via gdal-dev
> Skickat: den 24 mars 2021 09:42
> Till: 

> gdal-dev at .osgeo

> Ämne: Re: [gdal-dev] Gdal Java
> 
> 
> Klicka bara på länkar och öppna bilagor om du litar på avsändaren och 
> vet att innehållet är säkert.
> Hi Paul,
> I find the binaries provided at
> https://url11.mailanyone.net/v1/?m=1lOzCg-0001ww-4L&i=57e1b682&c=9fNL_
> OAF8vCIgrjZs9aaEB2UNNImM6gI8GCzoqAnKNimVVkylHGA07tBJv6IOWRHGmUKKXljtta
> lb7-9fSKoJRXHVHgZZReNymWKG_G2PNsxEfzkrdsDLJ5OCUF6GOAknKU4asXym3XgQgeOG
> IjYq6tb5x-KYwQMeTZwonVcJUyaCE6P24h0b-tnGHxFOYo8tTg_FMbjprD8DaPQsY7871S
> A4Agmh43T_JQ3BjKFdtcr_ELXZdLivAPNafJvPSW6
> the easiest to use. If you click on one build, e.g.
> release-1928-x64-gdal-3-2-1-mapserver-7-6-2, you get a number of 
> download options, including several installers. If you use the first 
> one (Compiled binaries in a single .zip package), you get an archive 
> which you need to extract, and which contains a folder bin\gdal\java.
> In there you find gdal.jar and gdalalljni.dll. Now in order to use 
> this, you need to have
> 
>   *   Gdal.jar in your Java Classpath
>   *   The extracted bin\gdal\java and bin folders in your Path (in
> Eclipse: Run Configuration -> Environment -> Select -> Path, then edit 
> the value, or set in the system) If that doesn't work, you'll need to 
> provide some more detailed description of what issue you are facing.
> 
> --
> Stefan
> 
> From: gdal-dev <

> gdal-dev-bounces at .osgeo

> > On Behalf Of

> paul.malm@

> Sent: Dienstag, 23. März 2021 08:26
> To: 

> gdal-dev at .osgeo

> Subject: [gdal-dev] Gdal Java
> 
> Hi list,
> is there someone out there who has succeeded in installing Gdal 
> Javabindings in Windows?
> I've tried for some weeks now :( and I can't find very much 
> information how to do it I Windows.
> gdalalljni.dll is not found for starters (Gdal 3.2.0) but it is there, 
> as installed by the installation process.
> I've been asking around on internet, but without any luck.
> If these is someone who knows how to do it in Windows with Eclipse, it 
> would be much appreciated to get some info...
> It would be nice to have a bullet list (for dummies), from where to 
> get the correct download files, installation, setting environment, 
> what is needed to be set in Eclipse etc. I don't have any experience 
> with javabindings or C++...
> 
> Kind regards,
> Paul
> This email and the information contained herein is proprietary and 
> confidential and subject to the Amdocs Email Terms of Service, which 
> you may review at 
> https://www.amdocs.com/about/email-terms-of-service<https://url11.m
> ailanyone.net/v1/?m=1lOzCg-0001ww-4L&i=57e1b682&c=5keNkrDjrvzw
> cRXVWHrZdauN_ulzs2IpwrQsOrckW4xafxj1rhUsAUZgKUKb10efCNBee9dHzyBWSkhO6c
> jwaclASZKpkYv1WRfY9vsqTOkHQyXS0dczjdTZu3MRIofEcvljG4mwYuABAqCuSItDekmh
> YOUgTI8aLLcAwPM7y1M1vZ2hLYnNkVKEKopxHH8RC1eRVKCFSdNWtP4Q41XCZZJPHH_4RM
> ryRb-6kS1GOYaP0Z02s9CcGMNfK1Rhoem-ADgDfyNZoG7HlIiRc0OQ7w>
> 
> _______________________________________________
> gdal-dev mailing list

> gdal-dev at .osgeo

> https://lists.osgeo.org/mailman/listinfo/gdal-dev





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list