[Gdal-dev] GDAL 1.6 Java binding, Windows

Even Rouault even.rouault at mines-paris.org
Mon Feb 9 17:08:47 EST 2009


Yes, I've managed to build them, but with Linux. Have you verified that the 
gdal.jar is generated and at the right place ?
There are instructions here : 
http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructions

It would be great if you could update the wiki page in case something has 
really change in the build process since that page was written.

You should also be warned that due to missing SWIG typemaps, quite a few 
methods in 1.6 bindings have wrong signature, which will hopefully be fixed 
in the future in 1.7dev once I've commited the code.

Le Monday 09 February 2009 22:48:11 Matthew Cole, vous avez écrit :
> I've created java bindings for GDAL 1.6 in Windows and it seemed to work
> but I'm getting linker errors whenever I try to access any gdal functions.
>
> java.lang.UnsatisfiedLinkError:
> C:\build182\gdal-1.6.0\swig\java\apps\gdaljni.dl
> l: Can't find dependent libraries
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> org.gdal.gdal.gdalJNI.AllRegister()V
>         at org.gdal.gdal.gdalJNI.AllRegister(Native Method)
>         at org.gdal.gdal.gdal.AllRegister(gdal.java:255)
>         at R2gcpinfo.R2ExtractFootprint(R2gcpinfo.java:100)
>         at R2gcpinfo.main(R2gcpinfo.java:78)
>
> I've got it working for version 1.4, with the dlls in the same places, so
> I'm not sure what the problem is.  II don't think the java binding are
> officially supported for 1.6 but has anyone gottem them working?
>
> Thanks for your help,
> Matt




More information about the gdal-dev mailing list