java.lang.NoClassDefFoundError while creating a .xlsx file using Apache POI

前端 未结 5 618
伪装坚强ぢ
伪装坚强ぢ 2021-01-23 16:21

I am trying to create a .xlsx file using Apache POI. This is my code:

FileOutputStream outputStream1=null;
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFSheet          


        
5条回答
  •  南笙
    南笙 (楼主)
    2021-01-23 17:07

    I also think you do not import the poi-3.7.jar into your project! first, you should create a folder lib, then copy the jar package file to this lib,then switch to build path, you can google it.

提交回复
热议问题