You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Lourival Júnior <ju...@gmail.com> on 2006/07/28 16:25:15 UTC

java.lang.NoClassDefFoundError

Hi all!
I'm testing the nutch 0.8. But I get this error in this simple command:

$ bin/nutch readdb
java.lang.NoClassDefFoundError: and
Exception in thread "main"

I've set the NUTCH_JAVA_HOME variable, but I'm sure it is the root cause of
this.

What is occurring?

-- 
Lourival Junior
Universidade Federal do Pará
Curso de Bacharelado em Sistemas de Informação
http://www.ufpa.br/cbsi
Msn: junior_ufpa@hotmail.com

Re: java.lang.NoClassDefFoundError

Posted by Yong Wang <wa...@gmail.com>.
Try this way if you are sure others are right (all jar files can be seen via
classpath, especially the hadoop-0.7.1.jar)
in bin/nutch (is bash script), the last line:
exec "$JAVA" $JAVA_HEAP_MAX $NUTCH_OPTS -classpath "$CLASSPATH" $CLASS "$@"
==>
Replace the $NUTCH_OPTS with your real windows path (including " for long
path name, for example:
-Dhadoop.log.dir="c:\Documents and
Settings\franky\nutch\nutch-snapshot\build\nutch-0.9-dev\logs" -
Dhadoop.log.file=hadoop.log).

Good luck.
Frank

On 12/1/06, Lourival Júnior <ju...@gmail.com> wrote:
>
> Please I'm testing nutch 0.8.1 and I still get this error when trying to
> run
> a simple commad:
>
> Exception in thread "main"
> java.lang.NoClassDefFoundError
>
> What's wrong? I'm running in Windows 2000 with cygwin.
>
> On 7/28/06, Rick Carver <re...@yahoo.com> wrote:
> >
> > I get the same problem trying to use nutch 0.8, just
> > checked out.
> >
> > Exception in thread "main"
> > java.lang.NoClassDefFoundError
> >
> > This is on OS X 10.4.7. Older nutch runs fine.
> >
> > --- Lourival Júnior <ju...@gmail.com> wrote:
> >
> > > Hi all!
> > > I'm testing the nutch 0.8. But I get this error in
> > > this simple command:
> > >
> > > $ bin/nutch readdb
> > > java.lang.NoClassDefFoundError: and
> > > Exception in thread "main"
> > >
> > > I've set the NUTCH_JAVA_HOME variable, but I'm sure
> > > it is the root cause of
> > > this.
> > >
> > > What is occurring?
> > >
> > > --
> > > Lourival Junior
> > > Universidade Federal do Pará
> > > Curso de Bacharelado em Sistemas de Informação
> > > http://www.ufpa.br/cbsi
> > > Msn: junior_ufpa@hotmail.com
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
>
>
> --
> Lourival Junior
> Universidade Federal do Pará
> Curso de Bacharelado em Sistemas de Informação
> http://www.ufpa.br/cbsi
> Msn: junior_ufpa@hotmail.com
>
>


-- 
http://spaces.msn.com/yishutonghua/

Re: java.lang.NoClassDefFoundError

Posted by Lourival Júnior <ju...@gmail.com>.
Please I'm testing nutch 0.8.1 and I still get this error when trying to run
a simple commad:

Exception in thread "main"
java.lang.NoClassDefFoundError

What's wrong? I'm running in Windows 2000 with cygwin.

On 7/28/06, Rick Carver <re...@yahoo.com> wrote:
>
> I get the same problem trying to use nutch 0.8, just
> checked out.
>
> Exception in thread "main"
> java.lang.NoClassDefFoundError
>
> This is on OS X 10.4.7. Older nutch runs fine.
>
> --- Lourival Júnior <ju...@gmail.com> wrote:
>
> > Hi all!
> > I'm testing the nutch 0.8. But I get this error in
> > this simple command:
> >
> > $ bin/nutch readdb
> > java.lang.NoClassDefFoundError: and
> > Exception in thread "main"
> >
> > I've set the NUTCH_JAVA_HOME variable, but I'm sure
> > it is the root cause of
> > this.
> >
> > What is occurring?
> >
> > --
> > Lourival Junior
> > Universidade Federal do Pará
> > Curso de Bacharelado em Sistemas de Informação
> > http://www.ufpa.br/cbsi
> > Msn: junior_ufpa@hotmail.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>



-- 
Lourival Junior
Universidade Federal do Pará
Curso de Bacharelado em Sistemas de Informação
http://www.ufpa.br/cbsi
Msn: junior_ufpa@hotmail.com

Re: java.lang.NoClassDefFoundError

Posted by Rick Carver <re...@yahoo.com>.
I get the same problem trying to use nutch 0.8, just
checked out.

Exception in thread "main"
java.lang.NoClassDefFoundError

This is on OS X 10.4.7. Older nutch runs fine.

--- Lourival Júnior <ju...@gmail.com> wrote:

> Hi all!
> I'm testing the nutch 0.8. But I get this error in
> this simple command:
> 
> $ bin/nutch readdb
> java.lang.NoClassDefFoundError: and
> Exception in thread "main"
> 
> I've set the NUTCH_JAVA_HOME variable, but I'm sure
> it is the root cause of
> this.
> 
> What is occurring?
> 
> -- 
> Lourival Junior
> Universidade Federal do Pará
> Curso de Bacharelado em Sistemas de Informação
> http://www.ufpa.br/cbsi
> Msn: junior_ufpa@hotmail.com
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com