NoClassDefFoundError: org / Apache / POI / SS / formula / UDF / UDF finder error in Java
                                        
                    •
                    Java                                    
                Hi, I'm using Apache POI to write an excel I am using sxssfworkbook But when this code is executed, I get this error again and again
My sample code is
Workbook wb = new SXSSFWorkbook(); // i am getting error here
        SXSSFSheet s = (SXSSFSheet)wb.createSheet("Import List");
The dependency I'm using is
<dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi</artifactId>
        <version>3.7</version>
    </dependency>
      <dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi-ooxml</artifactId>
        <version>3.10-FINAL</version>
    </dependency>
Now please give me some solutions to solve this problem. Thank you
Solution
Your POI jar version does not match the POI OOXML jar version
Poi-ooxml-3.10-final depends on poi-3.10-final
You can remove the dependence on POI, because poi OOXML will bring the required version or add the appropriate version to the POI
                            The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
                        
                                            
                        THE END
                    
                    
                    
                                                        二维码
                        
                        
                                                
                        