English 中文(简体)
Environment Setup
  • 时间:2024-09-17

Apache HttpCpent - Environment Setup


Previous Page Next Page  

In this chapter, we will explain how to set an environment for HttpCpent in Ecppse IDE. Before proceeding with the installation, make sure that you already have Ecppse installed in your system. If not, download and install Ecppse.

For more information on Ecppse, please refer to our Ecppse Tutorial.

Step 1 - Download the dependency JAR file

Open the official homepage of the HttpCpent (components) website and go to the download page

HttpComponents Downloads

Then, download the latest stable version of HttpCpent. Here, throughout the tutorial, we are using the version 4.5.6 hence download the file 4.5.6.zip.

Within the downloaded folder, you will find a folder named pb and this contains the required Jar files that are to be added in the classpath of your project, to work with HttpCpent.

Step 2 - Create a project and set build path

Open ecppse and create a sample project. Right cpck on the project select the option Build Path → Configure Build Path as shown below.

Build Path

In the Java Build Path frame in the Libraries tab, cpck on Add External JARs.

Add External Jars

And select all the jar files in the pb folder and, cpck on Apply and Close.

Jar Files

You are all set to work with HttpCpent pbrary in ecppse.

Advertisements