[netcdf-java] please help for geotiffwriter

Jon Blower jdb at mail.nerc-essc.ac.uk
Wed Oct 17 11:02:28 MDT 2007


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 at yahoo.com> 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 at unidata.ucar.edu
> 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 at mail.nerc-essc.ac.uk
University of Reading
3 Earley Gate
Reading RG6 6AL, UK
--------------------------------------------------------------


More information about the netcdf-java mailing list