NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi All, In a project I have a class, A, that creates a new netcdf-3 (NetcdfFileWriter.createNew(NetcdfFileWriter.Version.netcdf3, 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 NetcdfFileWriter.openExisting(fileName); 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. Niccolò
netcdf-java
archives: