[gdal-dev] GDAL Java bindings, using gdal plugins under Windows

Even Rouault even.rouault at mines-paris.org
Mon May 2 12:53:24 EDT 2011


Le lundi 02 mai 2011 14:14:26, Armin Burger a écrit :
> Hello all
> 
> I tried to use GDAL plugins via the Java bindings under Windows. The
> compiled GDAL libraries are the ones taken from
> http://www.gisinternals.com/sdk/, I used the
> "release-1400-gdal-1-8-0-mapserver-5-6-6" built.
> 
> Compilation of the sample gdalinfo.java worked fine and I can apply it on a
> Tiff file. It does not work however for formats supplied via the plugins
> dll's. Following the description from the site I set the environment
> variable GDAL_DRIVER_PATH pointing to the directory with the plugin dll's.
> 
> But when running the gdalinfo eg. on an ECW file I get the error
> 
> ERROR 1: Can't load requested DLL: X:\gdal\gdalplugins\gdal_ECW_JP2ECW.dll
> 127: The specified procedure could not be found.

You also need to make sure that your PATH points to the X:\gdal\bin directory 
(where libecwj2.dll should be)

> 
> So it looks for the correct dll in the right place, but cannot use it.
> 
> Is the usage of the plugins not supported via the Java bindings? It works
> fine when I use the gdalinfo.exe file.
> 
> Thanks in advance for any hints
> Armin


More information about the gdal-dev mailing list