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.
Themis, Your classpath might be wrong so java can't find Grib2Netcdf. Is ls /prog/WRF_IDL/toolsUI-4.0.jar correct?Here's a script i used, i tried 2 different jar files., 4.0 and 2.2.22 and both worked.
#/bin/csh -f set CP="/web/ftp/pub/netcdf-java/v4.0/toolsUI-4.0.jar" #set CP="/web/ftp/pub/netcdf-java/v2.2.22/toolsUI-2.2.22.jar" echo "java -classpath $CP ucar.nc2.ui.ToolsUI" java -Xmx512m -classpath $CP ucar.nc2.iosp.grib.Grib2Netcdf ndfd.wmo ndfd.nc Also, files with unusual characters should be quoted Let me know how this is working out. Robb... On Wed, 12 Mar 2008, themis chronis wrote:
Dear Robb,here's the problem i am facing: i am trying to run the script you have as an example and i am getting the following message://///////////////////////////////////////////////////////////////////////////////////////////////////// [temakos]# set CP="/prog/WRF_IDL/toolsUI-4.0.jar"[temakos]# echo "java -classpath $CP ucar.nc2.ui.ToolsUI" java -classpath /prog/WRF_IDL/toolsUI-4.0.jar ucar.nc2.ui.ToolsUI [temakos]#[temakos]# java -Xmx512m -classpath $CP ucar.nc2.iosp.grib.Grib2Netcdf wrfout_d01_2008-03-04_06:00:00_p_level test.nc Exception in thread "main" java.lang.NoClassDefFoundError: ucar.nc2.iosp.grib.Grib2Netcdfat gnu.java.lang.MainThread.run (libgcj.so.7)Caused by: java.lang.ClassNotFoundException: ucar.nc2.iosp.grib.Grib2Netcdf not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}at java.net.URLClassLoader.findClass (libgcj.so.7) at java.lang.ClassLoader.loadClass (libgcj.so.7) at java.lang.ClassLoader.loadClass (libgcj.so.7) at java.lang.Class.forName (libgcj.so.7) at gnu.java.lang.MainThread.run (libgcj.so.7)////////////////////////////////////////////////////////////////////////////////////////////////////////// Thanks in advanceThemis
=============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================