在 Eclipse 上安装 Apache 包 [英] Install Apache Package on Eclipse

查看:55
本文介绍了在 Eclipse 上安装 Apache 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Java 开始使用 Http Client在 Eclipse 上,但 IDE 抱怨缺少这些库.

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

特别是我正在尝试编译 this 示例但 Eclipse 抱怨导入声明指向一个未知的库...

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

有人可以指点我如何在 Eclipse 上安装 apache 库的教程吗?

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

我尝试下载源代码或二进制文件并将它们添加到路径中,但无济于事...thanx :D

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

推荐答案

他们需要进入编译时/运行时类路径.它在 Eclipse 等 IDE 中称为构建路径.

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

这是最简单的方法:

  • 将 JAR 放到项目文件夹中.
  • 选择 JAR,右键单击,选择构建路径,然后添加到构建路径.

这篇关于在 Eclipse 上安装 Apache 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆