hello
I have a problem opening zip files, and two months ago everything worked fine, I tried reinstalling snap many times to delete the GDAL folder, but none of this helped
java.lang.UnsatisfiedLinkError: ‘int org.gdal.gdalconst.gdalconstJNI.GDT_Unknown_get()’
at org.gdal.gdalconst.gdalconstJNI.GDT_Unknown_get(Native Method)
at org.gdal.gdalconst.gdalconstConstants.(gdalconstConstants.java:12)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1042)
at java.base/jdk.internal.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
at java.base/jdk.internal.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:186)
at java.base/java.lang.reflect.Field.acquireFieldAccessor(Field.java:1105)
at java.base/java.lang.reflect.Field.getFieldAccessor(Field.java:1086)
at java.base/java.lang.reflect.Field.get(Field.java:418)
at org.esa.snap.dataio.gdal.drivers.GDALReflection.fetchGDALLibraryConstant(GDALReflection.java:36)
at org.esa.snap.dataio.gdal.drivers.GDALConstConstants.gdtByte(GDALConstConstants.java:28)
at org.esa.snap.dataio.gdal.reader.GDALProductReader.(GDALProductReader.java:63)
at org.esa.snap.dataio.gdal.reader.plugins.AbstractDriverProductReaderPlugIn.createReaderInstance(AbstractDriverProductReaderPlugIn.java:77)
at eu.esa.sar.iogdal.sentinel1.Sentinel1ProductDirectory.addImageFile(Sentinel1ProductDirectory.java:116)
at eu.esa.sar.commons.io.AbstractProductDirectory.findImages(AbstractProductDirectory.java:141)
at eu.esa.sar.commons.io.AbstractProductDirectory.findImages(AbstractProductDirectory.java:168)
at eu.esa.sar.iogdal.sentinel1.Sentinel1ProductDirectory.createProduct(Sentinel1ProductDirectory.java:999)
at eu.esa.sar.iogdal.sentinel1.Sentinel1ProductReader.readProductNodesImpl(Sentinel1ProductReader.java:83)
Caused: java.io.IOException: eu.esa.sar.iogdal.sentinel1.Sentinel1ProductReader
[input=D:\SAT_im\14 june 2019\S1A_EW_GRDM_1SDH_20190614T081108_20190614T081208_027673_031FA1_EFAC.zip]:
‘int org.gdal.gdalconst.gdalconstJNI.GDT_Unknown_get()’
at eu.esa.sar.commons.io.SARReader.handleReaderException(SARReader.java:180)
at eu.esa.sar.iogdal.sentinel1.Sentinel1ProductReader.readProductNodesImpl(Sentinel1ProductReader.java:96)
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:178)
at org.esa.snap.core.dataio.ProductIO.readProduct(ProductIO.java:181)
[catch] at org.esa.snap.rcp.actions.file.ReadProductOperation.run(ReadProductOperation.java:61)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Similar issue has been reported here:
Native library load failed (GDAL) when gpt called from a python subprocess - Optical Toolbox - STEP Forum (esa.int)
Maybe this discussion can help you
I do not use python while using snap, and I do not know how to install another version of gdal separately.
I have the very same problem with SNAP 10.0 and 11.0 and don’t know how to fix it.
I’ve also deleted the \.snap\auxdata\gdal folder but it always creates it again with gdal-3-7-2.
However, I can load my zip file with SNAP 9. In this case, an early version of GDAL is being installed. How can I manually downgrade GDAL for SNAP 10/11?
Dear Alexander,
The internal GDAL distribution cannot be downgraded. Please provide us with information about your OS version.
I’m using Windows 11 (64bit). Please find attached the full message log.
messages.log (68.2 KB)
This issue might be related to a missing or corrupt Visual C++ Runtime.
Please check if Visual C++ Runtime 2017 is installed on your computer and try to repair/reinstall it.
I’ve reinstalled both Visual C++ Redistributables 2015-2022 (x86 and x64) but it didn’t solve the problem. It looks like I cannot install 2017 because the other redist is already installed.
Another thing I’ve realized: SNAP was working at first but stopped after upgrading QGIS. Maybe there is a connection!?
With QGIS 3.38.3 and SNAP 11 installed on Windows 11, we still cannot reproduce the error. We will continue the investigations.
Error: ‘int org.gdal.gdalconst.gdalconstJNI.GDT_Unknown_get()’
SEVERE: org.esa.snap.dataio.gdal.GDALLoader: Failed to initialize GDAL native drivers. GDAL readers and writers were disabled.java.lang.reflect.InvocationTargetException
Native library load failed.
java.lang.UnsatisfiedLinkError: C:\Users\Administrator.snap\auxdata\gdal\gdal-3-7-2\gdalalljni.dll: cannot found。
Hi, I think I’ve encountered a similar issue. When updating the Snap (Windows) version to 10.0 or above, I’m getting an error saying it can’t find gdal-3-7-2, even though the path actually exists. I’ve taken some screenshots of the key error messages. Is this caused by the update in versions?
Hi Diana, do you have any updates on this or any idea what I could try to resolve the issue? Thanks, Alex
btw…here is the full error message stack
Hi Alexander,
Unfortunately, we still can’t reproduce the issue.
Could you check if the following environment variables are defined on your system and provide their values: GDAL_DRIVER_PATH, GDAL_PLUGINS, GDAL_DATA?
Could you also check if the PATH env. variable contains the path of an installed GDAL version?
Thank you!
Please close SNAP, replace your C:\Users\Admin\.snap\auxdata\gdal folder with the one downloaded from : https://step.esa.int/downloads/tmp20241113/gdal20241113.zip
and try to open a S2 product.
Hi! I’ve downloaded SNAP on my MacBook (MacOs 10.15.7 Catalina) and when trying to open MTD_MSIL2A.xml file it gives me this error:
I’ll appreciate some guidance and help.
Thanks!
Please delete the .snap/auxdata/gdal folder located in your user directory, then try again.
Hi Michal,
Could you please provide some information about your operating system and confirm whether all SNAP 12 updates are installed?
Also, have you already tried this solution?
Thank you!
Hello, I encountered almost the exact same problem. I have tried all the methods you mentioned, but none of them worked. I tried versions 10, 11, and 12 of the software, and all reported the same error. Here is my error log.
messages.log (70.4 KB)
This issue has stalled my work for two days, and I really want to know how to resolve it.
Thanks!
We are unable to reproduce the issue on our end. Please follow the steps below to help us gather more information and identify the cause:
-
Delete SNAP, and after the uninstaller has finished, please make sure that the following folders are deleted:
C:\Program Files\esa-snap
C:\Users\huawei\AppData\Roaming\SNAP
C:\Users\huawei.snap -
Install SNAP 12, and all updates.
-
Close SNAP.
-
Open the file C:\Program Files\esa-snap\etc\snap.conf, append “-J-Dnetbeans.logger.console=true -J-ea -J-Dsnap.log.level=FINE -J-Dsnap.debug=true” to the default options, and save it. In the end it should look similar to this snap.conf.
-
Start SNAP, and try to open the product S2B_MSIL2A_20250224T042709_N9999_R133_T46TFK_20251023T090215.SAFE
-
Post under this thread the content of the log C:\Users\huawei\AppData\Roaming\SNAP\var\log\messages.log





