Cant open Sentinel 2 in SNAP 10 and in other versions

Hello!

I read the forum threads. I have a problem with GDAL. Perhaps I need to replace GDAL.

java.lang.NoClassDefFoundError: Could not initialize class org.gdal.gdalconst.gdalconstConstants 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.GDALConst. gaReadonly(GDALConst.java:28) at eu.esa.opt.dataio.s2.Sentinel2ProductReader.computeJP2MatrixCellsResolutionCountWithGDAL(Sentinel2ProductReader.java:297) at eu.esa.opt.dataio.s2.Sentinel2ProductReader.computeJP2MatrixCellsResolutionCount(Sentinel2ProductReader.java:325) at eu.esa.opt.dataio. s2.Sentinel2ProductReader.computeMatrixCellsResolutionCount(Sentinel2ProductReader.java:288) at eu.esa.opt.dataio.s2.ortho.Sentinel2OrthoProductReader.addBands(Sentinel2OrthoProductReader.java:547) at eu.esa.opt.dataio.s2.ortho.Sentinel2OrthoProductReader.readProduct(Sentinel2OrthoProductReader.java:266) at eu.esa.opt.dataio.s2.Sentinel2ProductReader.readProductNodesImpl(Sentinel2ProductReader.java:201) at org.esa.snap. core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:178) at eu.esa.opt.dataio.s2.ortho.Sentinel2OrthoProductReaderProxy.readProductNodes(Sentinel2OrthoProductReaderProxy.java:90) at org.esa.snap.core.dataio.ProductIO. readProduct(ProductIO.java:181) 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)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java :2033.

Delete the folder and restart SNAP - does not work.

In any version of SNAP I do not have the GDAL Library Loader parameter.

In SNAP version 9 and older, Sentinel-2 toolbox is installed. In version 10 - Optical Toolbox. In older versions, sometimes old Sentinel-2 files (downloaded several months or years ago) can be opened.
Unfortunately, I do not know how to work in the Python environment.
OS - Windows 8.1 64-bit

2 Likes

Do you have the same issue with both SNAP 9 and SNAP 10? Can you check if, for the current version, all the updates are installed ? (Help → Check for Updates). For processing baseline 5.11(Sentinel 2 products after July 23, 2024), the latest updates are required.

For SNAP 9, are you using the internal GDAL distribution?