Hi Christine

On 6/8/05, Christine C Moran <[EMAIL PROTECTED]> wrote:
> I downloaded the nutch-nightly from 06-06

Really? 
<quote>
Exception in thread "main" java.lang.NoClassDefFoundError:
net/nutch/tools/WebDBAdminTool
</quote>
the package "net.nutch.tools..." shows the version is oooold.
pls check out the version on apache. 

> 
> All the jar files are intact and not corrupt, and a tvf shows that the
> class WebDBAdmin tool is right within nutch-nightly.jar (but I knew that
> already... I did that with my old jar)
> 
> I don't know if that the script
> $ ./bin/nutch args
> handles the classpath as you say.
> 
> But, I did try running before and after manually setting the classpath
> $ ./bin/nutch admin db -create
> Both times I get the same error.
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> net/nutch/tools/WebDBAdminTool
> 
> What is going on here? I am sure it is simple but stilling driving me
> nuts.
> 
> Christine
> On Tue, 7 Jun 2005, Howie Wang wrote:
> 
> > It's funny, I had things working just fine for weeks and I tried to do
> > things from scratch yesterday and got the exact same thing. It turned
> > out that my problem was corrupted JAR files. Can you do a
> > "$JAVA_HOME/bin/jar tvf nutch-0.6.jar" successfully? And on all
> > the jar files in the nutch lib directory?
> >
> > I think what happened with me is that I tried stuffing everything
> > into a local CVS repository and it changed the jars into text files.
> >
> > You shouldn't have to set CLASSPATH since the nutch script should
> > take care of it for you.
> >
> > Maybe you should try downloading from scratch and making sure
> > you can "jar tvf" the jar files from the new download.
> >
> > By the way, Filemon is invaluable when tracking down odd build
> > issues on Windows:
> >
> > http://www.sysinternals.com/Utilities/Filemon.html
> >
> > Howie
> >
> > >Sorry to spam with so mundane an error; but I am really having problems
> > >here.
> > >
> > >For any attempted use of classes I know to be defined within the nutch-0.6
> > >jar I am getting a NoClassDefFound error. It must be a simple classpath
> > >error but I am having many troubles finding it.
> > >
> > >NUTCH_JAVA_HOME is set to c:\j2sdk1.4.2_01 and my CLASSPATH is set to
> > >C:\j2sdk1.4.2_01;C:\nutch-0.6\nutch-0.6.jar. I did this from within System
> > >Properties->Advanced->Environment Variables. Similarly styled x_JAVA_HOME
> > >variables set in the same place work just fine (for example CATALINA_HOME
> > >for tomcat gives no trouble) so that is not what I suspect.
> > >
> > >  I am not so used to setting classpaths manually on Windowstm.  What am I
> > >doing wrong? I am using cygwin, but from what I read cygwin will translate
> > >c:\blah to /cygdrive/c/blah just fine.
> > >
> > >An example of the error:
> > >
> > >bash-2.05b$./bin/nutch admin db -create
> > >run java in c:\j2sdk1.4.2_01
> > >Exception in thread "main" java.lang.NoClassDefFoundError:
> > >net/nutch/tools/WebDBAdminTool
> > >
> > >Any help would be appreciated.
> > >
> > >Christine
> >
> >
> >
>

Reply via email to