Cannot import XSSF in Apache POI
问题 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.XSSFWorkbook; Other import statements that reference POI DO NOT give me errors, such as: import org.apache.poi.ss.usermodel.*; Any ideas?? 回答1: 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