[gdal-dev] java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.Dataset_SWIGUpcast(J)J
Even Rouault
even.rouault at spatialys.com
Tue Jan 24 08:43:37 PST 2017
On mardi 24 janvier 2017 09:28:51 CET Vlad wrote:
> I have a clean build on RHEL of Gdal 2.1.2. Java app (as shaded jar) with
> the Maven 2.1.0 dependency throws:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> org.gdal.gdal.gdalJNI.Dataset_SWIGUpcast(J)J
> at org.gdal.gdal.gdalJNI.Dataset_SWIGUpcast(Native Method)
> at org.gdal.gdal.Dataset.<init>(Dataset.java:20)
> at org.gdal.gdal.gdal.Open(gdal.java:590)
>
> Reading, I find this is due to a SWIG version incompatibility. SWIG version
> used for the RHEL build was 1.3.40.
>
> Anybody know what SWIG version the Maven 2.1.0 jar was built with?
I don't remember unfortunately. The exception you mention is typical of the version
mismatch indeed, so you could try to generate the cpp part with SWIG 2
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170124/39bdb71e/attachment.html>
More information about the gdal-dev
mailing list