如何添加Jsoup在我的项目? [英] How to add Jsoup in my project?

查看:242
本文介绍了如何添加Jsoup在我的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要解析HTML文件,我发现Jsoup在谷歌

I want to parse a html file, and i found Jsoup in google

和我下载Jsoup-1.6.3.jar

and i download Jsoup-1.6.3.jar

然后我在命名库项目根创建一个文件

then i create a file in my project root named libs

在Eclipse - > RIGHT_CLICK项目 - >属性 - >图书馆 - >添加罐子

in eclipse -> RIGHT_CLICK the project -> properties -> Libraries -> add jars

- >选Jsoup.jar文件夹库 - >确定

-> choose Jsoup.jar in folder libs -> ok

但是当我在图书馆点击Jsoup.jar,我发现:

but when i click Jsoup.jar in Libraries, i found that:

来源附件(无),位置的Javadoc(无),本机库的位置(无)

Source attachment(None), Javadoc location(None), Native library location(None)

我有没有丢失任何一步?

did i lose any step?

有人可以教我如何导入Jsoup项目?

Can someone teach me how to import Jsoup in project?

推荐答案

您可以试试:


  1. 创建一个文件夹库

  2. 添加您的jar到libs文件夹

  3. 右键单击罐子和选择构建路径 - >添加到构建路径后,它会在你的项目结构创建一个引用的库文件夹

  1. Create a folder "libs"
  2. Add your jar into libs folder
  3. Right click on jars and select Build Path -> Add to build path., it will create a "Referenced Library" folder in your project structure.

这篇关于如何添加Jsoup在我的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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