[gdal-dev] Re: GDAL JAVA problem
Even Rouault
even.rouault at mines-paris.org
Mon Oct 11 14:01:29 EDT 2010
Sagar,
don't load the .so directly. Let gdal.jar do the dirty work for you !
Use the import org.gdal.XXX imports and then gdal.AllRegister() or
ogr.RegisterAll() instead.
See the examples in
http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/java/apps
Le jeudi 07 octobre 2010 11:03:36, sagar_sahay a écrit :
> Hi Even,
>
> Thanks for that, that error has been resolved. But the following warning as
> keeps coming , would you know what this means:
> Native library load failed.
> java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path
>
> I am loading all the .so files individually
>
> System.load("/home/gdal/gdal-1.7.2/swig/java/libgdalconstjni.so");
>
> System.load("/home/gdal/gdal-1.7.2/swig/java/libgdaljni.so");
>
> System.load("/home/gdal/gdal-1.7.2/swig/java/libogrjni.so");
>
> System.load("/home/gdal/gdal-1.7.2/swig/java/libosrjni.so");
>
> But still the error is coming. Please help if you can.
>
> Thanks again,
> Sagar
More information about the gdal-dev
mailing list