添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
悲伤的茄子  ·  Databricks Runtime ...·  4 月前    · 
大方的人字拖  ·  Camunda stops working ...·  3 月前    · 
重感情的包子  ·  [MyBatis/Error] ...·  3 月前    · 
一身肌肉的酱牛肉  ·  Conda 使用 - ...·  1 年前    · 
直爽的开水瓶  ·  js ...·  2 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Currently using:

<dependency><groupId>org.apache.poi</groupId><artifactId>poi</artifactId><version>3.10-FINAL</version></dependency>

I'm trying to write a simple program to get the word count of doc/x files. But some reason it is not able to find that specific method. Is it in another package or something? I've been googling and they are all pointing me to that pom.

As detailed on the Apache POI Components and Dependencies page, for HWPF you also need to include a Maven dependency on the poi-scratchpad artifact.

Your dependency in your pom will need to be something like:

<properties>
  <poi.version>3.11-beta2</poi.version>
 </properties>
<dependencies>
  <dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi</artifactId>
    <version>${poi.version}</version>
  </dependency>
  <dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi-scratchpad</artifactId>
    <version>${poi.version}</version>
  </dependency>
</dependencies>

(Non maven users need to add the poi-scratchpad jar from the binary package to their classpath, along with the poi jar you add now)

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.