I'm trying to make a 2D fish-eye view of a force-directed graph. The problem I'm having is that whenever I change the position of the nodes to reflect an observer looking from a certain distance, the attraction of the nodes make them flock together, thereby ruining the fish-eye effect. It looks fine for a split second, but then they attract each other very quickly.
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.