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 <[email protected]> > To: [email protected] > 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 > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
