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.
Unidata Support wrote:
You need grib.jar in your path, you can get it out of ftp://ftp.unidata.ucar.edu/pub/netcdf-java/v2.2/netcdfAll-2.2.zip------- Forwarded MessageTo: address@hidden From: "Shirley Cohen" <address@hidden> Subject: netCDF Java - Error Reading NetCDF File using Java Library Organization: UCAR/Unidata Keywords: 200504292103.j3TL3pH3003933--=_4c69c57ae6b36e297ad7c3268aad7f3c Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Institution: TACC Package Version: Version 2 Operating System: Windows XP Hardware Information: Dell Inquiry: I'm getting the following error when I try to run the attached program:java NetCDFCant load class ucar.nc2.iosp.grib.Grib1ServiceProvider java.lang.ClassNotFoundException: ucar.grib.grib1.Grib1Input Cant load class ucar.nc2.iosp.grib.Grib2ServiceProvider java.lang.ClassNotFoundException: ucar.grib.grib2.Grib2Input Exception in thread "main" java.lang.NullPointerException at NetCDF.main(NetCDF.java:21)I have both netcdf-2.2.jar and ncCore-2.2.jar in my classpath. Your assistance would be very much appreciated.Thanks, Shirley
Also, you only need netcdf-2.2.jar, as it insluced everything in ncCore-2.2.jar