You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Yavuz Selim YILMAZ <yv...@gmail.com> on 2010/09/07 16:41:35 UTC
Cygwin
Hi all,
When I try to crawl with the cygwin
bin/nutch urls -dir crawl -depth -2
I got such errors;
Exception in thread "main" java.lang.NoClassDefFoundError: nutch
Caused by: java.lang.NotFoundException: nutch
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
...
..
..
Could not find the main class: nutch. Program will exit.
Any suggesiton?
--
Yavuz Selim YILMAZ
Re: Cygwin
Posted by Yavuz Selim YILMAZ <yv...@gmail.com>.
As Raj said, I forget to build the source, you can build the source with
ant.
--
Yavuz Selim YILMAZ
2010/9/8 Richard Huang <ri...@gmail.com>
> Can u share how you resolve it? Thanks.
>
> Sent from my iPhone
>
> On Sep 8, 2010, at 1:33 AM, Yavuz Selim YILMAZ <yv...@gmail.com>
> wrote:
>
> > Ok Raj, I solved the problem, thnx.
> > --
> >
> > Yavuz Selim YILMAZ
> >
> >
> > 2010/9/7 Nemani, Raj <Ra...@turner.com>
> >
> >> Oh wait,.... Your command looks wrong too (dunno if that was a typo)
> >>
> >> It should be something like
> >>
> >> bin/nutch crawl urls -dir crawldir -depth 2
> >>
> >> crawl is the crawl command
> >> urls is my seed directory
> >> crawldir is the directory where the crawl results are stored
> >> depth is 2
> >>
> >> -----Original Message-----
> >> From: Nemani, Raj [mailto:Raj.Nemani@turner.com]
> >> Sent: Tuesday, September 07, 2010 10:53 AM
> >> To: user@nutch.apache.org
> >> Subject: RE: Cygwin
> >>
> >> If you are trying to run from source, then make sure to build the
> >> source.
> >> Type 'ant' from the top level directory into which you have downloaded
> >> the source. I assume you are familiar with 'Ant' etc
> >>
> >> If you are running from released bits, I cannot see how you can get this
> >> error. Make sure you are in the directory where you have downloaded
> >> Nutch bits to before running the command "bin/nutch....."
> >>
> >> This is all I can suggest for the moment given the information you
> >> provided
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: Yavuz Selim YILMAZ [mailto:yvzslmyilmazz@gmail.com]
> >> Sent: Tuesday, September 07, 2010 10:42 AM
> >> To: user@nutch.apache.org
> >> Subject: Cygwin
> >>
> >> Hi all,
> >>
> >> When I try to crawl with the cygwin
> >>
> >> bin/nutch urls -dir crawl -depth -2
> >>
> >> I got such errors;
> >>
> >> Exception in thread "main" java.lang.NoClassDefFoundError: nutch
> >> Caused by: java.lang.NotFoundException: nutch
> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> >> ...
> >> ..
> >> ..
> >> Could not find the main class: nutch. Program will exit.
> >>
> >> Any suggesiton?
> >> --
> >>
> >> Yavuz Selim YILMAZ
> >>
>
Re: Cygwin
Posted by Richard Huang <ri...@gmail.com>.
Can u share how you resolve it? Thanks.
Sent from my iPhone
On Sep 8, 2010, at 1:33 AM, Yavuz Selim YILMAZ <yv...@gmail.com> wrote:
> Ok Raj, I solved the problem, thnx.
> --
>
> Yavuz Selim YILMAZ
>
>
> 2010/9/7 Nemani, Raj <Ra...@turner.com>
>
>> Oh wait,.... Your command looks wrong too (dunno if that was a typo)
>>
>> It should be something like
>>
>> bin/nutch crawl urls -dir crawldir -depth 2
>>
>> crawl is the crawl command
>> urls is my seed directory
>> crawldir is the directory where the crawl results are stored
>> depth is 2
>>
>> -----Original Message-----
>> From: Nemani, Raj [mailto:Raj.Nemani@turner.com]
>> Sent: Tuesday, September 07, 2010 10:53 AM
>> To: user@nutch.apache.org
>> Subject: RE: Cygwin
>>
>> If you are trying to run from source, then make sure to build the
>> source.
>> Type 'ant' from the top level directory into which you have downloaded
>> the source. I assume you are familiar with 'Ant' etc
>>
>> If you are running from released bits, I cannot see how you can get this
>> error. Make sure you are in the directory where you have downloaded
>> Nutch bits to before running the command "bin/nutch....."
>>
>> This is all I can suggest for the moment given the information you
>> provided
>>
>>
>>
>> -----Original Message-----
>> From: Yavuz Selim YILMAZ [mailto:yvzslmyilmazz@gmail.com]
>> Sent: Tuesday, September 07, 2010 10:42 AM
>> To: user@nutch.apache.org
>> Subject: Cygwin
>>
>> Hi all,
>>
>> When I try to crawl with the cygwin
>>
>> bin/nutch urls -dir crawl -depth -2
>>
>> I got such errors;
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: nutch
>> Caused by: java.lang.NotFoundException: nutch
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> ...
>> ..
>> ..
>> Could not find the main class: nutch. Program will exit.
>>
>> Any suggesiton?
>> --
>>
>> Yavuz Selim YILMAZ
>>
Re: Cygwin
Posted by Yavuz Selim YILMAZ <yv...@gmail.com>.
Ok Raj, I solved the problem, thnx.
--
Yavuz Selim YILMAZ
2010/9/7 Nemani, Raj <Ra...@turner.com>
> Oh wait,.... Your command looks wrong too (dunno if that was a typo)
>
> It should be something like
>
> bin/nutch crawl urls -dir crawldir -depth 2
>
> crawl is the crawl command
> urls is my seed directory
> crawldir is the directory where the crawl results are stored
> depth is 2
>
> -----Original Message-----
> From: Nemani, Raj [mailto:Raj.Nemani@turner.com]
> Sent: Tuesday, September 07, 2010 10:53 AM
> To: user@nutch.apache.org
> Subject: RE: Cygwin
>
> If you are trying to run from source, then make sure to build the
> source.
> Type 'ant' from the top level directory into which you have downloaded
> the source. I assume you are familiar with 'Ant' etc
>
> If you are running from released bits, I cannot see how you can get this
> error. Make sure you are in the directory where you have downloaded
> Nutch bits to before running the command "bin/nutch....."
>
> This is all I can suggest for the moment given the information you
> provided
>
>
>
> -----Original Message-----
> From: Yavuz Selim YILMAZ [mailto:yvzslmyilmazz@gmail.com]
> Sent: Tuesday, September 07, 2010 10:42 AM
> To: user@nutch.apache.org
> Subject: Cygwin
>
> Hi all,
>
> When I try to crawl with the cygwin
>
> bin/nutch urls -dir crawl -depth -2
>
> I got such errors;
>
> Exception in thread "main" java.lang.NoClassDefFoundError: nutch
> Caused by: java.lang.NotFoundException: nutch
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> ...
> ..
> ..
> Could not find the main class: nutch. Program will exit.
>
> Any suggesiton?
> --
>
> Yavuz Selim YILMAZ
>
RE: Cygwin
Posted by "Nemani, Raj" <Ra...@turner.com>.
Oh wait,.... Your command looks wrong too (dunno if that was a typo)
It should be something like
bin/nutch crawl urls -dir crawldir -depth 2
crawl is the crawl command
urls is my seed directory
crawldir is the directory where the crawl results are stored
depth is 2
-----Original Message-----
From: Nemani, Raj [mailto:Raj.Nemani@turner.com]
Sent: Tuesday, September 07, 2010 10:53 AM
To: user@nutch.apache.org
Subject: RE: Cygwin
If you are trying to run from source, then make sure to build the
source.
Type 'ant' from the top level directory into which you have downloaded
the source. I assume you are familiar with 'Ant' etc
If you are running from released bits, I cannot see how you can get this
error. Make sure you are in the directory where you have downloaded
Nutch bits to before running the command "bin/nutch....."
This is all I can suggest for the moment given the information you
provided
-----Original Message-----
From: Yavuz Selim YILMAZ [mailto:yvzslmyilmazz@gmail.com]
Sent: Tuesday, September 07, 2010 10:42 AM
To: user@nutch.apache.org
Subject: Cygwin
Hi all,
When I try to crawl with the cygwin
bin/nutch urls -dir crawl -depth -2
I got such errors;
Exception in thread "main" java.lang.NoClassDefFoundError: nutch
Caused by: java.lang.NotFoundException: nutch
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
...
..
..
Could not find the main class: nutch. Program will exit.
Any suggesiton?
--
Yavuz Selim YILMAZ
RE: Cygwin
Posted by "Nemani, Raj" <Ra...@turner.com>.
If you are trying to run from source, then make sure to build the
source.
Type 'ant' from the top level directory into which you have downloaded
the source. I assume you are familiar with 'Ant' etc
If you are running from released bits, I cannot see how you can get this
error. Make sure you are in the directory where you have downloaded
Nutch bits to before running the command "bin/nutch....."
This is all I can suggest for the moment given the information you
provided
-----Original Message-----
From: Yavuz Selim YILMAZ [mailto:yvzslmyilmazz@gmail.com]
Sent: Tuesday, September 07, 2010 10:42 AM
To: user@nutch.apache.org
Subject: Cygwin
Hi all,
When I try to crawl with the cygwin
bin/nutch urls -dir crawl -depth -2
I got such errors;
Exception in thread "main" java.lang.NoClassDefFoundError: nutch
Caused by: java.lang.NotFoundException: nutch
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
...
..
..
Could not find the main class: nutch. Program will exit.
Any suggesiton?
--
Yavuz Selim YILMAZ