如何在 Eclipse 中为 Selenium Webdriver 项目添加 Apache POI 库? [英] How can I add the Apache POI Library in Eclipse - for Selenium Webdriver project?

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

问题描述

我需要将 apache poi 添加到我的项目中(我需要 hssf、ss 和 xssf).我从互联网上下载了一个 jar 文件,但它不包含 xssf.我去了 http://poi.apache.org/ 并下载了这个:http://www.apache.org/dyn/closer.cgi/poi/release/src/poi-src-3.9-20121203.zip,我解压了……然后卡住了.我尝试了第 1 部分,但仅适用于 JavaDoc.

I need to add the apache poi to my project (I need hssf, ss and xssf). I downloaded a jar file from the internet but it does not contain xssf. I went to http://poi.apache.org/ and I downloaded this: http://www.apache.org/dyn/closer.cgi/poi/release/src/poi-src-3.9-20121203.zip, I extract it..and got stucked. I tried Part 1 but that was only for JavaDoc.

我应该如何从这里开始?

How should I proceed from here?

推荐答案

  1. 下载最新稳定版:Apache POI 3.16-FINAL 发行版,

打开你的eclipse项目属性,

open your eclipse project properties,

Java 构建路径 > 库 > 添加外部 JAR,

Java Built Path > Libraries > Add external JARs,

然后解压缩您下载的 zip 文件并导航到解压缩的文件夹,

then extract the zip file you downloaded and navigate the extracted folder,

选择子文件夹(docs、lib、ooxml-lib)下的所有JAR,

select all the JARs under the sub folders (docs, lib, ooxml-lib),

最后在 Order and Export 部分为刚刚添加的 jar 库添加标记,

then finally in the Order and Export section put marks to jar libs you just added,

然后点击确定.

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

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