Apache's HttpClient suite not working - Ben Fry's "Data visualization" chap. 9
in
Contributed Library Questions
•
1 year ago
Hi All,
I'm reading Ben Fry's book "Data visualization" and in Chapter 9 "Acquiring data" there's a section on Apache's HttpClient suite to easily download the content of a webpage.
The book provides the code, specifying that we first need to download three .jar files for the code to work properly. These files are available from Apache's HttpClient project webpage.
Ben then goes on to explain that we just need to put these .jar files into the same sketch folder containing our code and that it will work (he doesn't say we have to put the .jar files into the libraries folder).
Unfortunately I did exactly what he says but it doesn't work. I've got an error message telling me Processing can't find the libraries I'm trying to import:
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.*;
import org.apache.log4j.*;
Error message: "The package 'org.apache.commons' does not exist. You might be missing a library.
Can anyone help me with this?
Many thanks in advance
1