HSSFWorkbook cannot be resolved to a type

时间:2016-04-04 17:10:55

标签: apache-poi

I am getting this compilation error

HSSFWorkbook cannot be resolved to a type 

when i am using this class in Selenium webdriver.I have added the respective jar, poi 3.9 jar, but still unable to resolve this compilation error.

3 个答案:

答案 0 :(得分:1)

Hi please update your apache poi to The latest stable release is Apache POI 3.14 from https://poi.apache.org/download.html and then import the Apache POI jars form

  1. jars inside poi-3.14
  2. jars inside lib

答案 1 :(得分:1)

寻找" poi-3.17.jar" !!!

  1. 从" https://poi.apache.org/download.html"。
  2. 下载
  3. 点击一个二进制分发 - > poi-bin-3.17-20170915.tar.gz
  4. 解压缩文件下载并查找" poi-3.17.jar"。
  5. 问题解决了,错误消失了。

    希望这能回答你的问题!!!

答案 2 :(得分:0)

The message indicates that the class could not be found on the classpath of your application. Did you make sure that the POI jar is added?