mohankreddy / crawler4j

Automatically exported from code.google.com/p/crawler4j
0 stars 0 forks source link

runtime exception #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.while running the Controller.class file i got this exception i.e, java 
Controller
2.
3.

What is the expected output? What do you see instead?
java Controller 
got this error message:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logg
er
        at edu.uci.ics.crawler4j.crawler.CrawlController.<clinit>(CrawlControlle
r.java:43)
        at Controller.main(Controller.java:4)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 2 more

What version of the product are you using? On what operating system?
version:crawler4j-2.6.1, on windows7

Please provide any additional information below.
I had set the classpath also.
I am using this crawler for the first time, i do not have much idea on this.

Original issue reported on code.google.com by anjalisi...@gmail.com on 21 Dec 2011 at 5:24

Attachments:

GoogleCodeExporter commented 9 years ago
This exception is because you haven't added the dependencies to your classpath. 
Please download the dependencies from the downloads section and add them to 
your classpath.

-Yasser

Original comment by ganjisaffar@gmail.com on 2 Jan 2012 at 7:19