Summary

A short explanation of how to use the HTTPCLient library by Innovation for Java in your eclipse IDE (under Linux/Unix or any GNU environment).

For all, who did not figure out, how to easyly use the HTTPClient Library by Innovation for Java in your eclipse IDE.

Please mail me, if you know any different or better way.

First, go into the directory, where you want to store the library files. Then execute the following commands in your console:

> wget http://www.innovation.ch/java/HTTPClient/HTTPClient.tar.gz

> tar -xzf HTTPClient.tar.gz

> jar cvf HTTPClient.jar HTTPClient/*class HTTPClient/http/*class HTTPClient/https/*class shttp/*class
        

You may now delete HTTPClient.tar.gz and the directory HTTPClient. All you need is HTTPClient.jar.

Then, proceed in Eclipse (with your project opened):

Project -> Properties -> Java Build Path -> Libraries -> Add External JARs -> [the JAR file you created with the last command]

In your project you can now use the HTTPClient library with

import HTTPClient.*;
        

Read the HTTPClient Documentation to get further information.