HSSFWorkbook cannot be resolved to a type

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.

Best Answer

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