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.
> Hello sean, > > I had written java program to create a .nc file where i need to run this and > see whether .nc is created or not. > Thanks, > Ravi Teja > > Greetings Ravi, You will need to download the netcdfALL-4.2.jar file located here: ftp://ftp.unidata.ucar.edu/pub/netcdf-java/v4.2/netcdfAll-4.2.jar Once you have the jar file downloaded, you can add it to your classpath environmental variable, or you can simp0ly put it in the directory where your java code is and run the following: javac -classpath ./netcdfAll-4.2.jar <your file>.java Then, after compiling, you should see a <your file>.class file in the directory, which is the compiled java code. Now, to run the code, execute: java -classpath .:./netcdfAll-4.2.jar <your file> You may want to give this a try with the Simple_xy_wr.java file from the example programs page just to make sure everything is working. Cheers, Sean Ticket Details =================== Ticket ID: TLG-682846 Department: Support netCDF Java Priority: High Status: Open