guorouda / crawler4j

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

Class not found exception #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

I am a newbie to java & crawlers concept, however I am unable to run the 
crawler4j

I am able to compile both BasicCrawler.java & BasicCrawlController.java, 
however I am unable to run BasicCrawlController.java

I am seeing the following output:

D:\Crawler4j\crawlerj>java BasicCrawlController data 1
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/clien
t/methods/HttpUriRequest
        at BasicCrawlController.main(BasicCrawlController.java:104)
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.Http
UriRequest
        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)
        ... 1 more

I am using 3.3 version

I have downloaded dependencies & placed in a separate folder. Please see 
screenshots for reference

Also I am unable to compile files when I add basicCrawler.java & 
BasicCrawlController.java in 
D:\Crawler4j\crawlerj\edu\uci\ics\crawler4j\examples\basic

so I have moved those files to D:\Crawler4j\crawlerj\

Then I am able to compile after removing the package declarations in both 
files....however now stuck up with above not class found issue while executing 
controller..plzzz help me out

Thanks,
Prashanth K

Original issue reported on code.google.com by prassh1...@gmail.com on 29 Apr 2012 at 6:41

Attachments:

GoogleCodeExporter commented 9 years ago
I'm facing the same problem. Did you find any solution?

Original comment by arvind.a...@gmail.com on 29 Oct 2012 at 2:11

GoogleCodeExporter commented 9 years ago
This is a general classpath problem - including java library in the classpath 
(search it in google).

Original comment by avrah...@gmail.com on 11 Aug 2014 at 1:40

GoogleCodeExporter commented 9 years ago
Not a bug or feature request

Original comment by avrah...@gmail.com on 11 Aug 2014 at 1:40