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 Martin-My bad. I've make a fix and it will be in the next release. We'll also update the docs because visadNoDods.jar is required for reading McIDAS grids and GEMPAK files as well. Thanks for catching this.
Don Martin Desruisseaux wrote:
Hello allI'm using the NetCDF library version 4.1 without the visadNoDods.jar file (this dependency is big! 4.3Mb). In my understanding ofhttp://www.unidata.ucar.edu/software/netcdf-java/reference/JarDependencies.htmlthis dependency is optional if I don't need to read McIDAS AREA files. This work well for normal NetCDF I/O operations. But when trying to invoke the following code:NetcdfFile.canOpen("myFile")on any file that is not a NetCDF file (for example a PNG image), I get the following exception:java.lang.NoClassDefFoundError: visad/util/Trace at ucar.nc2.iosp.gempack.GempackStationFileIOSP.isValidFile:141 (...snip...) at ucar.nc2.NetcdfFile.canOpen(NetcdfFile.java:412)I can workaround with a try ... catch block. But is there any chance to have NetcdfFile.canOpen(...) to not check file format that depends on optional JAR files not present on the classpath?Regards, Martin _______________________________________________ netcdf-java mailing list netcdf-java@xxxxxxxxxxxxxxxxFor list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
-- ************************************************************* Don Murray UCAR Unidata Program dmurray@xxxxxxxxxxxxxxxx P.O. Box 3000 (303) 497-8628 Boulder, CO 80307 http://www.unidata.ucar.edu/staff/donm *************************************************************
netcdf-java
archives: