How to read excel(.xlsx) in java using poi?

前端 未结 5 1869
遇见更好的自我
遇见更好的自我 2021-01-05 17:19

I am trying to read excel in java.I have following code.

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.         


        
5条回答
  •  花落未央
    2021-01-05 17:52

    Add following jars and add them to your classpath then run your project.

    1. dom4j-1.6.1-sources.jar
    2. dom4j.jar
    3. log4j-1.2.17.jar
    4. poi-3.5-FINAL.jar
    5. poi-ooxml-3.5-beta5.jar
    6. poi-ooxml-schemas-3.9.jar
    7. xmlbeans-2.3.0.jar

提交回复
热议问题