[netcdf-java] netcdf3 open existing file

Hi All,

In a project I have a class, A, that creates a new netcdf-3
fileNameToSave);) and update it as new output are available. To read the
file I use NetcdfFileWriter.openExisting(fileName).

Now I would like to have a new class, let say B, that opens an
existing netcdf-3 and modifies the values of some variables, just
overwriting them. Again to open the file I use


Running class B I get this error

java.lang.UnsatisfiedLinkError: Unable to load library 'netcdf': The
specified module could not be found.

at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:145)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:188)
at com.sun.jna.Library$Handler.<init>(Library.java:123)
at com.sun.jna.Native.loadLibrary(Native.java:255)
at com.sun.jna.Native.loadLibrary(Native.java:241)
at ucar.nc2.jni.netcdf.Nc4Iosp.load(Nc4Iosp.java:155)
at ucar.nc2.jni.netcdf.Nc4Iosp._open(Nc4Iosp.java:234)
at ucar.nc2.jni.netcdf.Nc4Iosp.openForWriting(Nc4Iosp.java:230)
at ucar.nc2.NetcdfFileWriter.<init>(NetcdfFileWriter.java:196)
at ucar.nc2.NetcdfFileWriter.openExisting(NetcdfFileWriter.java:105)

The file exists.

The weird thing is that one I call NetcdfFileWriter.openExisting(fileName);
in class A everything is fine and I get my output file

Thanks for any assistance you can provide.
  • 2021 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: