简体   繁体   中英

Using POI for excel works in Java

I want to read/write excel files in Java (netbeans). There are a lot of information on how to do that with APACHE POI and I know that. My question is that, where should I put poi jar files? should I extract it in my local project?

Additionally, should I download the binary or src of the poi?

我同意Maven是最佳选择,但是如果您没有时间研究它,只需尝试将jar文件添加到您的项目中

If you are using maven you only have to add this dependency to your pom.xml file

<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.15</version>
</dependency>

With this library you can process .xls and .xlsx files. If you are not using maven you should download the jar file and add it to your classpath

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