[gdal-dev] Re: UnsatisfiedLinkError with gdal14

MarvinCO marvin.offiah at googlemail.com
Sun Nov 21 07:26:18 EST 2010


Which are the common DLL search locations? Eclipse doesn't give me any clue
about how its starts the JVM, and which additional locations it may ask the
JVM to search automatically. Process monitor also doesn't really give me any
clue, it shows me mainly files from the System32 folder, which should
already be part of the PATH.

What do you mean by setting the PATH environment of the javaw process? Is
there any VM argument to set that?

BTW, this is the .classpath file contents of my project:


<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src"/>
	<classpathentry kind="lib" path="lib/batik-1.7/batik-rasterizer.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/batik-slideshow.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/batik-squiggle.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/batik-svgpp.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/batik-ttf2svg.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/batik.jar"/>
	<classpathentry kind="lib"
path="lib/batik-1.7/extensions/batik-rasterizer-ext.jar"/>
	<classpathentry kind="lib"
path="lib/batik-1.7/extensions/batik-squiggle-ext.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-anim.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-awt-util.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-bridge.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-codec.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-css.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-dom.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-ext.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-extension.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-gui-util.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-gvt.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-parser.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-script.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-svg-dom.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-svggen.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-swing.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-transcoder.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-util.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/batik-xml.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/js.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/pdf-transcoder.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/xalan-2.6.0.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/xerces_2_5_0.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/xml-apis-ext.jar"/>
	<classpathentry kind="lib" path="lib/batik-1.7/lib/xml-apis.jar"/>
	<classpathentry kind="lib"
path="lib/SuperCSV-1.52/spiffy-with_source-all-0.05.jar"/>
	<classpathentry kind="lib" path="lib/SuperCSV-1.52/SuperCSV-1.52.jar"/>
	<classpathentry kind="lib"
path="lib/SuperCSV-1.52/SuperCSV-with_src-1.52.jar"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry combineaccessrules="false" kind="src" path="/Data"/>
	<classpathentry combineaccessrules="false" kind="src" path="/IO"/>
	<classpathentry combineaccessrules="false" kind="src" path="/Utils"/>
	<classpathentry combineaccessrules="false" kind="src" path="/GUI"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-arcgrid-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-customstreams-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdal-bindings-1.4.5b.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalarcbinarygrid-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalarcgrid-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdaldoq1-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdaldoq2-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdaldted-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalecw-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalecwjp2-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalehdr-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalenvihdr-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalenvisat-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalerdasimg-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalframework-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalgeotiff-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdaljpeg-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalkakadujp2-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalmrsid-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalmrsidjp2-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-gdalnitf-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-geocore-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-imagereadmt-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-imagereadmt-BSD-LICENSE.txt"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-jhdfaccess-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-kakadu-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-kakadujni-5.2.6.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-tiff-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-tiff-BSD-LICENSE.txt"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/imageio-ext-utilities-1.0.8.jar"/>
	<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/jhdf-4.jar"/>
	<classpathentry kind="output" path="build/classes"/>
</classpath>


It rings a bell looking at this entry:

<classpathentry kind="lib"
path="lib/imageio-ext-1.0.8-libraries/jhdf-4.jar"/>

Somehow I remember people talking about the hdf-thing to be relevant for the
UnsatisfiedLinkError problem, but I don't know why. What does the hdf do
anyway?

As you may see, I am including all these CLASSPATH entries in my Python
script, too. Apart from this one:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>

What does the "con" kind mean? Do you think using this classpath entry in my
Python script could be important? What's the function of the files in that
path?

Don't worry about the external projects in the following entries:

<classpathentry combineaccessrules="false" kind="src" path="/Data"/>
<classpathentry combineaccessrules="false" kind="src" path="/IO"/>
<classpathentry combineaccessrules="false" kind="src" path="/Utils"/>
<classpathentry combineaccessrules="false" kind="src" path="/GUI"/>

I have already copied the compilations of those files into the "build"
output folder of my application before launching the Python script, so they
can't be missing. And they don't contain any DLLs anyway.

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/UnsatisfiedLinkError-with-gdal14-tp5759026p5760042.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list