Re: [gdal-dev] Using Java bindings of GDAL library : UnsatisfiedLinkError

2012-06-11 Thread Even Rouault
> /rhel5pdi/home/kdeshpan/gdal_java/swig/java/libogrjni.so: wrong ELF class: > ELFCLASS64 (Possible cause: architecture word width mismatch) That's pretty informative, isn't it ? Sounds like you are mixing a 64bit Java with a 32bit GDAL build, or the reverse _

Re: [gdal-dev] Using Java bindings of GDAL library : UnsatisfiedLinkError

2012-06-11 Thread Kedar Deshpande
I am still getting the same exception. Even export env variable is not working. The entire exception I am getting is : kdeshpan.desktop% java -classpath `pwd`/gdal.jar:`pwd`:`pwd`/apps apps/TestClass Native library load failed. java.lang.UnsatisfiedLinkError: /rhel5pdi/home/kdeshpan/gdal_java/swig

Re: [gdal-dev] Using Java bindings of GDAL library : UnsatisfiedLinkError

2012-06-08 Thread Chaitanya kumar CH
Kedar, I don't think setenv works at Linux terminal. Use the export command. export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd` You should also set GDAL_DATA to the data directory to gdal/data On Sat, Jun 9, 2012 at 7:24 AM, Kedar Deshpande wrote: > Hi, > > I am writing a simple program to read a

[gdal-dev] Using Java bindings of GDAL library : UnsatisfiedLinkError

2012-06-08 Thread Kedar Deshpande
Hi, I am writing a simple program to read a shapefile in Java on my linux machine using the gdal library's Java bindings. I followed the steps according to the link http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructionsUnix given on the GDAL library's site. In the gdal folder in gdal/swi