[gdal-dev] Native library load failed while using gdal maven dependency - UnsatisfiedLinkError

ssaniev ssaniev at gmail.com
Tue Feb 9 11:46:50 PST 2016


Hi Justin,

Coding in java Windows7/Eclipse/spring/maven.

*As told before, added dependency to pom, and see the gdal-2.0.0.jar in
maven dependencies and able to import to my java class.*
<dependency>
	<groupId>org.gdal</groupId>
	<artifactId>gdal</artifactId>
	<version>2.0.0</version>
</dependency>


I downloaded the libraries from here:
http://download.gisinternals.com/sdk/downloads/release-1800-x64-gdal-1-11-3-mapserver-6-4-2.zip

unzippped... and added the both paths below to my environment PATH variable:
..\Downloads\release-1800-x64-gdal-1-11-3-mapserver-6-4-2\bin
..\Downloads\release-1800-x64-gdal-1-11-3-mapserver-6-4-2\bin\gdal\java

Created another environment variable
GDAL_DATA=..\Downloads\release-1800-x64-gdal-1-11-3-mapserver-6-4-2\bin\gdal-data

Inside Eclipse, added a VM argument to my project runtume:
-Djava.library.path="..\workspace\GISDataDirectory\release-1800-x64-gdal-1-11-3-mapserver-6-4-2\bin\gdal\java\;${env_var:PATH}"



*And after all this, I am getting a different related error:*

Native library load failed.
java.lang.UnsatisfiedLinkError:
..\workspace\GISDataDirectory\release-1800-x64-gdal-1-11-3-mapserver-6-4-2\bin\gdal\java\gdaljni.dll:
The specified procedure could not be found

nested exception is java.lang.UnsatisfiedLinkError:
org.gdal.gdal.gdalJNI.VersionInfo__SWIG_1()Ljava/lang/String;] with root
cause


What am I missing here?




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Native-library-load-failed-while-using-gdal-maven-dependency-UnsatisfiedLinkError-tp5249728p5249767.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list