on-internet
← Community

Java Read/Write Excel - Error : The constructor XSSFWorkbook(FileInputStream) is undefined

Stack Overflow ·

I am trying to read data from an excel file, i am using the following code : File src = new File("T:\\SeleniuminputFiles\\input.xlsx"); FileInputStream fis = new FileInputStream(src); XSSFWorkbook wb = new XSSFWorkbook(fis); XSSFSheet sheet1 = wb.getSheetAt(0); but i am getting the compilation error as The constructor XSSFWorkbook(FileInputStream) is undefined. I have downloaded External Jar files from The latest stable release Apache POI 3.16 http://poi.apache.org/download.html#POI-3.16 Your help would be highly appreciated.

Comments

Sign in or sign up to comment and upvote.

No comments yet.