I have trouble with Apache POI project.

I unsuccessful to make use of XSSF and HSSF within the "Same Java Class". Which jar must i download or which artifact must i get add into maven?

I wish to handle both xls and xlsx files simultaneously. After I get stand out version error, I'll alter the XSSF to HSSF or HSSF to XSSF.

Thanks ahead of time

Kaira

Rather than doing that, use the brand new discharge of Apache POI 3.7, it's SS package which handles both HSSF and XSSF without having to worry about type

Particulars here: http://poi.apache.org/spreadsheet/index.html