NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdf-java] please help for geotiffwriter

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
--------------------------------------------------------------


  • 2007 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: