Java error on Windows

Goodmorning,

I have this error when I open Snap now after updates. How should I fix it ?

java.lang.UnsatisfiedLinkError: org.gdal.gdalconst.gdalconstJNI.GDT_Unknown_get()I
at org.gdal.gdalconst.gdalconstJNI.GDT_Unknown_get(Native Method)
at org.gdal.gdalconst.gdalconstConstants.(gdalconstConstants.java:12)
at org.esa.s2tbx.dataio.gdal.GDALUtils.(GDALUtils.java:32)
at org.esa.s2tbx.dataio.gdal.activator.GDALDistributionInstaller.install(GDALDistributionInstaller.java:74)
at org.esa.s2tbx.dataio.gdal.activator.GDALPlugInActivator.start(GDALPlugInActivator.java:22)
at org.esa.snap.runtime.Engine.informActivators(Engine.java:222)
at org.esa.snap.runtime.Engine.lambda$start$0(Engine.java:121)
at org.esa.snap.runtime.Engine.runClientCode(Engine.java:189)
at org.esa.snap.runtime.Engine.start(Engine.java:121)
at org.esa.snap.rcp.SnapApp.onStart(SnapApp.java:364)
at org.esa.snap.rcp.SnapApp$StartOp.run(SnapApp.java:500)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)

Hello,
It seems that the GDAL native libraries are not found.
You can try to delete the gdal folder within .snap/auxdata from your user directory and then try to start SNAP again.
Best regards,
Oana

I did so , but the error remaided :confounded:

The error disappears when I stopped using proxy connections.

I am experiencing several issues with proxy on SNAP

I just reproduced it by corrupting (deleting) parts of gdal directory contents. Then, by deleting the entire gdal folder within auxdata, at SNAP restart, everything was put again in the right place.
Your gdal folder content should look like this:
image

image

Make sure to close the file explorer after you delete the gdal folder, in order that SNAP has access to write there again the gdal folder with the right contents.

1 Like

I did so… but the issue remains…