Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
Hi Zitian, Looks like a problem with your classpath (nothing to do with netcdf-java I think). You need to make sure that both the NetCDF library *and* your current directory are in your classpath. Maybe something like: java –classpath /usr/share/netcdfUI-2.2.22.jar;. test which should work if test.java is in the current working directory and the default package. Hope this helps, Jon On 10/17/07, zitian guo <zi_guo@xxxxxxxxx> wrote: > hello, > > I have a question on geotiff, Please help. > > I compile codes, using > > Javac -classpath /usr/share/netcdfUI-2.2.22.jar > test.java Exception in thread "main" > > The compilation seems to be OK. But when I run I got > error message: > > > "Exception in thread "main" > java.lang.NoClassDefFoundError: > ucar/nc2/geotiff/GeotiffWriter" > > If I run, using "java –classpath > /usr/share/netcdfUI-2.2.22.jar test > > I got error message like: > > ""Exception in thread "main" > java.lang.NoClassDefFoundError: test" > > Any suggestions are greatly appreciated. > > I use intel linux box. The code are from internet as > the attechment. > > > Zitian > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > netcdf-java mailing list > netcdf-java@xxxxxxxxxxxxxxxx > For list information or to unsubscribe, visit: > http://www.unidata.ucar.edu/mailing_lists/ > > > -- -------------------------------------------------------------- Dr Jon Blower Tel: +44 118 378 5213 (direct line) Technical Director Tel: +44 118 378 8741 (ESSC) Reading e-Science Centre Fax: +44 118 378 6413 ESSC Email: jdb@xxxxxxxxxxxxxxxxxxxx University of Reading 3 Earley Gate Reading RG6 6AL, UK --------------------------------------------------------------
netcdf-java
archives: