<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.E-postmall18
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SV" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’ve tried to install java bindings for GDAL this whole week. But is seems impossible for me to manage that.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’ve read on internet a lot of discussions an tried solutions that other has suggested, but without success.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have Windows 10,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Java 1.8.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Eclipse 4.17.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I installed gdal-302-1928-x64-core.msi from
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://www.gisinternals.com/query.html?content=filelist&file=release-1928-x64-gdal-3-2-1-mapserver-7-6-2.zip">https://www.gisinternals.com/query.html?content=filelist&file=release-1928-x64-gdal-3-2-1-mapserver-7-6-2.zip</a>
to <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\Program Files<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’ve set the following “extra” Environment variables:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">PATH:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\Program Files\Gdal\bin\gdal\apps;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\Program Files\Gdal\bin;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\Program Files\Gdal\bin\gdal;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\Program Files\Gdal\bin\gdal\java;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\Program Files\Gdal\bin\gdal\plugins-external<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\Program Files\Gdal\bin\gdal\plugins<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\Program Files\java-1.8.0-openjdk-1.8.0.201-1.b09.ojdkbuild.windows.x86_64\jre\bin;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Other environment variables I have set:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">GDAL_BIN C:\Program Files\Gdal\bin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">GDAL_DATA C:\Program Files\Gdal\bin\gdal-data<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">GDAL_DRIVER C:\Program Files\Gdal\bin\gdal\plugins<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">GDAL_DRIVER_PATH C:\Program Files\Gdal\bin\gdal\plugins<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">PROJ_LIB C:\Program Files\Gdal\bin\proj7\share<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">JAVA_HOME C:\Program Files\java-1.8.0-openjdk-1.8.0.201-1.b09.ojdkbuild.windows.x86_64\jre<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Eclipse:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In run configurations I added the argument:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-Djava.library.path="C:\Program Files\Gdal\bin\gdal\java;${env_var:PATH}"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In java build path I added external library: C:\Program Files\Gdal\bin\gdal\java\gdal.jar
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The error code I get is however I do/configure is:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">Native library load failed.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">java.lang.UnsatisfiedLinkError: C:\Program Files\Gdal\bin\gdal\java\gdalalljni.dll:
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.HasThreadSupport()I<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"> at org.gdal.gdal.gdalJNI.HasThreadSupport(<u>Native Method</u>)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">
</span><span style="font-size:10.0pt;font-family:Consolas">at org.lfv.raster.TransformRaster.<init>(<u>TransformRaster.java:64</u>)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">at org.lfv.raster.TransformRaster.main(<u>TransformRaster.java:51</u>)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">When I run gdalinfo –-formats<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">I get the following response:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">ERROR 1: Can't load requested DLL: C:\Program Files\Gdal\bin\gdal\plugins\gdal_GEOR.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">126: Det gÕr inte att hitta den angivna modulen.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">ERROR 1: Can't load requested DLL: C:\Program Files\Gdal\bin\gdal\plugins\gdal_GEOR.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">126: Det gÕr inte att hitta den angivna modulen.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">ERROR 1: Can't load requested DLL: C:\Program Files\Gdal\bin\gdal\plugins\ogr_OCI.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">126: Det gÕr inte att hitta den angivna modulen.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">ERROR 1: Can't load requested DLL: C:\Program Files\Gdal\bin\gdal\plugins\ogr_OCI.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">126: Det gÕr inte att hitta den angivna modulen.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">Supported Formats:
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"> BAG -raster,multidimensional raster,vector- (rw+v): Bathymetry Attributed Grid<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"> ECW -raster- (rov): ERDAS Compressed Wavelets (SDK 5.5)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">
</span><span style="font-size:10.0pt;font-family:Consolas">JP2ECW -raster,vector- (rov): ERDAS JPEG2000 (SDK 5.5)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> </span>
<span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">FITS -raster,vector- (rw+): Flexible Image Transport System<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">
</span><span style="font-size:10.0pt;font-family:Consolas">GMT -raster- (rw): GMT NetCDF Grid Format<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> </span>
<span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">HDF4 -raster,multidimensional raster- (ros): Hierarchical Data Format Release 4<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">
</span><span style="font-size:10.0pt;font-family:Consolas">Etc…</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">As I’m listing, the files are there:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Directory of C:\Program Files\Gdal\bin\gdal\plugins<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-03-11 08:58 <DIR> .<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-03-11 08:58 <DIR> ..<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:04 2 937 344 gdal_BAG.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:05 195 584 gdal_ECW_JP2ECW.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:05 205 824 gdal_FITS.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:03 412 672 gdal_GEOR.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:04 578 048 gdal_GMT.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:04 520 704 gdal_HDF4.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:04 520 704 gdal_HDF4Image.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:04 2 937 344 gdal_HDF5.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:04 2 937 344 gdal_HDF5Image.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:04 2 957 312 gdal_KEA.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:04 139 776 gdal_MG4Lidar.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:03 154 112 gdal_MrSID.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:04 578 048 gdal_netCDF.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:03 3 954 688 gdal_PDF.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:05 232 960 ogr_AmigoCloud.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2021-02-11 19:03 203 776 ogr_OCI.dll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Soon I don’t have any hair left :-(<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there someone who can say what I’m doing wrong.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Please..<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/Paul<o:p></o:p></span></p>
</div>
</body>
</html>