Noopur Kore wrote:I'm trying to read my Excel file in console.
these are the libraries i imported..
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
But the problem is it does not accept .xlsx file, it accepts only .xls. What do I need to do, to rectify this?
You can try the XSSF version of these classes.