Re: [gdal-dev] Re: GDAL JAVA problem

Ivan Lucena ivan.lucena at pmldnet.com
Wed Oct 6 10:03:03 EDT 2010


Sagar,

In order to make it to work you NetBeans need to have access to GDAL shared libraries, the GDAL Java wrapper shared libraries and the GDAL.JAR file. I would guess that the GDAL Java wrapper not been in the path would be the usual suspect (libgdalconstjni.so, libgdaljni.so).

Regards,

Ivan


>  -------Original Message-------
>  From: sagar_sahay <sagar at spiffymap.net>
>  To: gdal-dev at lists.osgeo.org
>  Subject: [gdal-dev] Re: GDAL JAVA problem
>  Sent: Oct 06 '10 08:43
>  
>  
>  Hi Ivan,
>  
>  Can you please help me with compiling the GdalInfo class in Ubuntu with
>  Netbeans. My problem is that the program is throwing an exception when it
>  reaches the gdal.AllRegister() method and the exception says the following:
>  Native library load failed.
>  java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path
>  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:447)
>          at ogr.gdalinfo.main(gdalinfo.java:57)
>  
>  I would be obliged if you would help me with this.
>  
>  Thanks,
>  Sagar
>  
>  --
>  View this message in context: http://osgeo-org.1803224.n2.nabble.com/GDAL-JAVA-problem-tp2147356p5607136.html
>  Sent from the GDAL - Dev mailing list archive at Nabble.com.
>  _______________________________________________
>  gdal-dev mailing list
>  gdal-dev at lists.osgeo.org
>  http://lists.osgeo.org/mailman/listinfo/gdal-dev
>  


More information about the gdal-dev mailing list