Java VM comes with a lot of classes, but not org.apache.http.*.
You need to help the Java virtual machine, for example, you will help gcc to associate binary code in C or C ++ with -lxxxand LD_LIBRARY_PATHwith the concept of classpath. java -cp <path>:<path>:<path>indicate where classes are needed (e.g. .so for binaries on Unix).
Classesorg.apache.http.* . jar cp <path> spec.
, apache http client 4.3 delivery, lib:
- HttpClient-4.3.jar
- httpmime-4.3.jar
- --4.3.jar
- HttpClient--4.3.jar
- httpcore-4.3.jar
- - 1.1.3.jar
- --1.6.jar
, , commons-logging-1.1.3.jar httpclient-4.3.jar