简体   繁体   中英

XSSFWorkbook, XSSFSheet not working - NetBeans 8.0.2

I downloaded the POI 3.11 package from the Apache repositories website, added them to my project. After that I added xmlbeans , ooxml-schemas , but still my NetBeans 8.0.1 IDE shows an error when I declare XSSFWorkbook and XSSFSheet .

Can anybody help me here? as I am not much of a core Java guy, so treat me as a novice in this domain.

This is pretty awkward but a truth also.
I found the solution, and it is in my NetBeans 8.0.2 IDE , which is when I manually typed the following code in the IDE :-

XSSFWorkbook workbook=new XSSFWorkbook();
XSSFSheet sheet=workbook.createSheet("Employee Data");

it showed an error . But when I went on and clicked the suggestion (CTRL + Space) provided by the IDE it miraculously worked , but I do not have a logical clue about the thing though :)
Hope it will be of help for NetBeans Apache POI Developers .

Thanks!!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM