You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by nu...@sycona.com on 2009/03/02 08:28:16 UTC

Could not find the main class: admin.

Dear all

when I try the command "bin/nutch admin db -create" I get a error message:

Exception in thread "main" java.lang.NoClassDefFoundError: admin
Caused by: java.lang.ClassNotFoundException: admin
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: admin.  Program will exit.

What do I need to edit?

Cheers
Joerg

Re: Could not find the main class: admin.

Posted by Bartosz Gadzimski <ba...@o2.pl>.
Hi,

Command "admin" is not valid in 0.9 and in trunk versions of nutch

You can use tutorial:
http://peterpuwang.googlepages.com/NutchGuideForDummies.htm

and many more on nutch wiki:

http://wiki.apache.org/nutch/


nutchuser@sycona.com pisze:
> Hi Alexander
>
> i downloaded the nutch tutorial and the "bin/nutch admin db -create" 
> should be used to generate a new, empty db. But I guess it is wrong?
> I will get another tutorial
>
> Joerg
>
>
> Zitat von Alexander Aristov <al...@gmail.com>:
>
>> What do you want to run? Execute the command
>>
>> bin/nutch
>>
>> and you will get list of all supported commands
>>
>> Alexander
>>
>> 2009/3/2 <nu...@sycona.com>
>>
>>> Dear all
>>>
>>> when I try the command "bin/nutch admin db -create" I get a error 
>>> message:
>>>
>>> Exception in thread "main" java.lang.NoClassDefFoundError: admin
>>> Caused by: java.lang.ClassNotFoundException: admin
>>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>        at java.security.AccessController.doPrivileged(Native Method)
>>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>> Could not find the main class: admin.  Program will exit.
>>>
>>> What do I need to edit?
>>>
>>> Cheers
>>> Joerg
>>>
>>
>>
>>
>> -- 
>> Best Regards
>> Alexander Aristov
>>
>
>
>


Re: Could not find the main class: admin.

Posted by nu...@sycona.com.
Hi Alexander

i downloaded the nutch tutorial and the "bin/nutch admin db -create"  
should be used to generate a new, empty db. But I guess it is wrong?
I will get another tutorial

Joerg


Zitat von Alexander Aristov <al...@gmail.com>:

> What do you want to run? Execute the command
>
> bin/nutch
>
> and you will get list of all supported commands
>
> Alexander
>
> 2009/3/2 <nu...@sycona.com>
>
>> Dear all
>>
>> when I try the command "bin/nutch admin db -create" I get a error message:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: admin
>> Caused by: java.lang.ClassNotFoundException: admin
>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>        at java.security.AccessController.doPrivileged(Native Method)
>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> Could not find the main class: admin.  Program will exit.
>>
>> What do I need to edit?
>>
>> Cheers
>> Joerg
>>
>
>
>
> --
> Best Regards
> Alexander Aristov
>



Re: Could not find the main class: admin.

Posted by Alexander Aristov <al...@gmail.com>.
What do you want to run? Execute the command

bin/nutch

and you will get list of all supported commands

Alexander

2009/3/2 <nu...@sycona.com>

> Dear all
>
> when I try the command "bin/nutch admin db -create" I get a error message:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: admin
> Caused by: java.lang.ClassNotFoundException: admin
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: admin.  Program will exit.
>
> What do I need to edit?
>
> Cheers
> Joerg
>



-- 
Best Regards
Alexander Aristov