This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Brian, I suspect that this is a version issue: NetCDF-Java requires NetCDF-C v4.3.1+ in order to write NetCDF-4 files. Can you confirm that you're using a recent-enough version? Failing that, it would be helpful to turn JNA debugging on so that we can get some feedback about why the lib couldn't be loaded. Try running NetCDF-Java with "-Djna.debug_load=true". Hopefully that will reveal which lib JNA is attempting to load: the one in /usr/local/lib or the one in /usr/lib. Also, FYI, the preferred way to load NetCDF-C on Linux is to use the LD_LIBRARY_PATH environment variable [1]. However, that's not likely to matter in this instance because you installed in the standard linux location (/usr/local/lib), which JNA checks as a last resort. Cheers, Christian [1] http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/reference/netcdf4Clibrary.html#loading_preferred_linux Ticket Details =================== Ticket ID: XBV-923348 Department: Support netCDF Java Priority: Normal Status: Closed