Mascarpone
Mascarpone

Reputation: 2556

Install Apache Package on Eclipse

I'm trying to get started with Http Client with Java on Eclipse, but the IDE complains that the libraries are missing.

In particular I'm trying to compile this example but eclipse complain that the import declaration is pointing towards an unknow library...

Could someone point me to a tutorial on how to install the apache libraries on eclipse?

I tried to download the sources or binaries and adding them to the path with no avail... thanx :D

Upvotes: 1

Views: 17556

Answers (2)

BalusC
BalusC

Reputation: 1108567

They need to go in the compiletime/runtime classpath. It's called Build Path in an IDE like Eclipse.

Here's the easiest way:

  • Drop the JARs in the project folder.
  • Select the JARs, right click, choose Build Path and then Add to Build Path.

alt text

Upvotes: 6

dogbane
dogbane

Reputation: 274532

  • Download the HTTPClient jars and save them in the project.
  • Right click the project name and navigate to Build Path.
  • Select Configure Build Path
  • Select the Libraries tab.
  • Click Add Jars...
  • Locate and select the JARs you want and click OK.

Upvotes: 2

Related Questions