[gdal-dev] Re: Using the GDAL/OGR Java bindings with the OSGeo4W environment

Even Rouault even.rouault at mines-paris.org
Sun Apr 24 16:56:33 EDT 2011


Le dimanche 24 avril 2011 21:46:45, MarvinCO a écrit :

Hum, ok, I've now tested a bit OSGeo4W and it appears that there's a packaging 
error in the java-1.6.0_17-1.tar.bz2 package that includes an ancient version 
of GDAL 1.4 and its binding libraries, which then conflicts with the gdal-java 
package.

So I have cleaned my whole c:\OSGeo4W directory, installed the java package 
only. Then I've removed manually all the gdal*, ogr*, osr* stuff in C:
\OSGeo4W\bin . Then I have installed the gdal-java package.

And now I can run "java -cp c:\osgeo4w\lib\gdal.jar;. gdalinfo" from c:
\OSGeo4W\share\gdal

You should file a ticket to OSGeo4W trac about the remaining GDAL stuff in the 
java package.

> Hi Even,
> 
> thanks. I have now done that. Could only do that via "Add External Class
> Folder" and by choosing "C:\OSGeo4W\bin".
> 
> In addition to that, I expanded the "JRE System Library" entry (which is
> set to "C:\OSGeo4W") and set the "Native Library location" to
> "C:\OSGeo4W\bin" (which is where those DLLs are located).
> 
> I even removed the System.loadLibrary("gdal18"), since you said it is
> redundant.
> 
> But I'm still getting the same error.
> 
> What could the problem be? Why "HasThreadSupport"? And what library loads
> failed? I though the OSGeo4W installer has already taken care of
> downloading dependent libraries. If they are found but still fail to be
> loaded, why so?
> 
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Using-the-GDAL-OGR-Java-bindings-wi
> th-the-OSGeo4W-environment-tp6301272p6301448.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