Arijitb1710
Arijitb1710

Reputation: 11

HSSFWorkbook cannot be resolved to a type

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.

Upvotes: 1

Views: 12936

Answers (3)

yTze
yTze

Reputation: 93

Look for "poi-3.17.jar"!!!

  1. Download from "https://poi.apache.org/download.html".
  2. Click the one Binary Distribution -> poi-bin-3.17-20170915.tar.gz
  3. Unzip the file download and look for this "poi-3.17.jar".

Problem solved and errors disappeared.

Hope this answer your question!!!

Upvotes: 2

Rajnish Kumar
Rajnish Kumar

Reputation: 2938

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

Upvotes: 2

Paras
Paras

Reputation: 3235

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?

Upvotes: 0

Related Questions