[gdal-dev] Gdal Java

paul.malm at lfv.se paul.malm at lfv.se
Wed Mar 31 00:59:50 PDT 2021


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 lists.osgeo.org> För Stefan Moebius via gdal-dev
Skickat: den 24 mars 2021 09:42
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 Paul,
I find the binaries provided at https://url11.mailanyone.net/v1/?m=1lOzCg-0001ww-4L&i=57e1b682&c=9fNL_OAF8vCIgrjZs9aaEB2UNNImM6gI8GCzoqAnKNimVVkylHGA07tBJv6IOWRHGmUKKXljttalb7-9fSKoJRXHVHgZZReNymWKG_G2PNsxEfzkrdsDLJ5OCUF6GOAknKU4asXym3XgQgeOGIjYq6tb5x-KYwQMeTZwonVcJUyaCE6P24h0b-tnGHxFOYo8tTg_FMbjprD8DaPQsY7871SA4Agmh43T_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 lists.osgeo.org> On Behalf Of paul.malm at lfv.se
Sent: Dienstag, 23. März 2021 08:26
To: gdal-dev at lists.osgeo.org
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.mailanyone.net/v1/?m=1lOzCg-0001ww-4L&i=57e1b682&c=5keNkrDjrvzwcRXVWHrZdauN_ulzs2IpwrQsOrckW4xafxj1rhUsAUZgKUKb10efCNBee9dHzyBWSkhO6cjwaclASZKpkYv1WRfY9vsqTOkHQyXS0dczjdTZu3MRIofEcvljG4mwYuABAqCuSItDekmhYOUgTI8aLLcAwPM7y1M1vZ2hLYnNkVKEKopxHH8RC1eRVKCFSdNWtP4Q41XCZZJPHH_4RMryRb-6kS1GOYaP0Z02s9CcGMNfK1Rhoem-ADgDfyNZoG7HlIiRc0OQ7w>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210331/3f9a8642/attachment-0001.html>


More information about the gdal-dev mailing list