I am referencing the version 3.7 of the Apache POI and I am getting a \"cannot be resolved\" error when I do:
import org.apache.poi.xssf.usermodel.XSSFWorkbo
For OOXML to work you need the POI-OOXML jar which is separately packaged from the POI jar.
Download the POI-OOXML jar from the following location -
http://repo1.maven.org/maven2/org/apache/poi/poi-ooxml/3.11/poi-ooxml-3.11.jar
For Maven2 add the below dependency -
org.apache.poi poi-ooxml 3.11