Did your java file compiled well? If yes , then its a classpath problem..
in case of classpath problem , run as $java -cp .(DOT)    filename(without
.class extens) or u can manually put a .(DOT) in the file where u set
classpath like in linux we do it in .bash_profile file...........

On Sun, Mar 6, 2011 at 11:53 PM, bhawna singh [via Lucene] <
[email protected]> wrote:

> Hi,
> I am getting ClassNotFoundException exception for the admin command. I
> searched on web and I see many other see this error too.
>
> I checked Nutch 1.1, 1.2 src and bin downloaders and still no luck. Please
> point to the location where I can find the WebAdminTool class.
>
> Thanks,
> Bhawna
> Exception in thread "main" java.lang.NoClassDefFoundError: admin
> Caused by: java.lang.ClassNotFoundException: admin
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: admin.  Program will exit.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lucene.472066.n3.nabble.com/ClassNotFoundException-admin-tp2642604p2642604.html
>  To start a new topic under Nutch - User, email
> [email protected]
> To unsubscribe from Nutch - User, click 
> here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=603147&code=YW51cmFnLml0LmpvbGx5QGdtYWlsLmNvbXw2MDMxNDd8LTIwOTgzNDQxOTY=>.
>
>



-- 
Kumar Anurag


-----
Kumar Anurag

--
View this message in context: 
http://lucene.472066.n3.nabble.com/ClassNotFoundException-admin-tp2642604p2642948.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Reply via email to