Apache的POI 3.9:WorkbookFactory方法未找到 [英] Apache POI 3.9 : WorkbookFactory method not found

查看:235
本文介绍了Apache的POI 3.9:WorkbookFactory方法未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用我使用的Apache POI 3.8 XLS文件处理。

In my app I have used apache POI 3.8 for XLS file processing.

现在我想mograte到Apache 3.9最新的稳定版本。我在我的应用程序添加JAR文件POI-3.9-20121203.jar并删除相关的POI 3.8 JAR文件。

Now I want to mograte to Apache 3.9 latest and stable version. I have added JAR file poi-3.9-20121203.jar in my application and removed JARs related to POI 3.8.

但似乎,在3.9版本中,WorkbookFactory类已删除。

But it seems that, In 3.9 version, WorkbookFactory class has removed.

所以,我怎样才能在Apache的3.9创建工作簿WorkbookFactory?

So How can I create Workbook with WorkbookFactory in apache 3.9 ?

我提取罐和检查,有没有像WorkbookFactory没有课。

I extracted the jar and checked, there no class like WorkbookFactory.

谁能告诉我,如何使用POI 3.9创建新的工作簿。

Can anyone tell me, How to create new workbook with POI 3.9.

推荐答案

您错过几个JAR。看看在 POI组件Page ,然后你会看到你所需要的POI-3.9瓶子,POI -OOXML-3.9罐,和它们各自的依赖关系。

You're missing several JARs. Take a look at the POI Components Page and you'll see that you need the POI-3.9 jar, the POI-OOXML-3.9 jar, and their respective dependencies.

如果你想与任何其他格式(如DOC,DOCX,PPT,PPTX),你还需要POI暂存器-3.9罐子工作。当你正在与OOXML文件格式的工作(如.xlsx)格式,如图所示的页面组件,您将需要的POI-OOXML_Schemas-3.9瓶,涨幅较大的全OOXML-架构-1.1 JAR。

If you want to work with any of the other formats (eg doc, docx, ppt, pptx) you'll also need the POI-Scratchpad-3.9 jar. As you're working with the OOXML file formats (eg .xlsx), as shown in the components page, you'll need either the POI-OOXML_Schemas-3.9 jar, or the larger full OOXML-Schemas-1.1 jar.

此外,因为这个问题被问,已经有Apache的POI的两个新版本中,使用许多修复的bug并增加了新功能,所以它的价值使用最新版本(3.11写作的),而不是3.9!

Also, since this question was asked, there have been two new releases of Apache POI, with lots of bugs fixed and new features added, so it's worth using the latest version (3.11 as of writing) rather than 3.9!

这篇关于Apache的POI 3.9:WorkbookFactory方法未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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