Hi,

I'm on Windows. I just unset CLASSPATH, and here's what I'm running
from bin/nutch:

C:/jdk14/bin/java -Xmx1000m -classpath e:\projects\nutch-0.6\conf;e:\projects\nu
tch-0.6\build\classes;e:\projects\nutch-0.6\build;e:\projects\nutch-0.6\build\te
st\classes;e:\projects\nutch-0.6\nutch-0.6.jar;e:\projects\nutch-0.6;e:\projects
\nutch-0.6\lib\concurrent-1.3.4.jar;e:\projects\nutch-0.6\lib\dom4j-1.4.jar;e:\p
rojects\nutch-0.6\lib\jaf-1.0.2.jar;e:\projects\nutch-0.6\lib\jakarta-oro-2.0.7.
jar;e:\projects\nutch-0.6\lib\junit-3.8.1.jar;e:\projects\nutch-0.6\lib\lucene-1
.4.2.jar;e:\projects\nutch-0.6\lib\servlet.jar;e:\projects\nutch-0.6\lib\taglibs
-i18n.jar;e:\projects\nutch-0.6\lib\xerces-2_6_2-apis.jar;e:\projects\nutch-0.6\
lib\xerces-2_6_2.jar net.nutch.tools.WebDBAdminTool db -create

There might be something interesting going on with the line in the script near
the bottom:

# cygwin path translation
if expr match `uname` 'CYGWIN*' > /dev/null; then
 CLASSPATH=`cygpath -p -w "$CLASSPATH"`
fi

I just tried commenting it out and it gives me the same error as you.
I would try commenting it IN by hand and see how it goes:

# cygwin path translation
#if expr match `uname` 'CYGWIN*' > /dev/null; then
 CLASSPATH=`cygpath -p -w "$CLASSPATH"`
#fi


Howie


 I tried that before (and just did, again) just in case. Unfortunaly I
still get the same error.

I am running it in the nutch-nightly directory (has bin,
nutch-nightly.jar, conf, lib,README etc). It really must be something with
the classpath I think. Can anyone running windows manually check what
their's is set to? I call the env var CLASSPATH should I call it something
else, etc.?

On Wed, 8 Jun 2005, Stefan Groschupf wrote:

> Can you please try to type:
> bin/nutch admin db -create
> and NOT
> ./bin/nutch ...
> may the problem is the " ./ " before the command.
>
> Stefan
>
>
> Am 08.06.2005 um 13:55 schrieb [EMAIL PROTECTED]:
>
> > I am still getting a NoClassDefFoundError for all the nutch
> > classes, but
> > it is at least now looking in the right package
> > (org/apache/nutch/tools/WebDBAdminTool). Also the error structure
> > now is
> > slightly different
> >
> > $./bin/nutch admin db -create
> > dirname: not found
> > run java in c:\j2sdk1.4.2_01
> > uname: not found
> > expr: not found
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/nutch/tools/WebDBAdminTool
> >
> > Same structure on any
> > $./bin/nutch args
> > Just that the class it can't find is different
> >
> > -Christine
> >
> >
> > On Wed, 8 Jun 2005, Stefan Groschupf wrote:
> >
> >
> >>
> >>
> >>> Exception in thread "main" java.lang.NoClassDefFoundError: net/
> >>> nutch/tools/WebDBAdminTool
> >>>
> >>
> >> As mentioned the package path to the webDB admin tool need to be
> >> something like:
> >>    CLASS=org.apache.nutch.tools.WebDBAdminTool
> >>
> >> Please see and may compare your script with:
> >> http://svn.apache.org/viewcvs.cgi/lucene/nutch/trunk/bin/nutch?
> >> rev=179640&view=markup
> >>
> >>
> >> I'm sure your shell script isn't the correct version, may you have a
> >> older script in the path??
> >>
> >> HTH
> >> Stefan
> >>
> >>
> >>
> >
> >
>
>


Reply via email to