开发者

Dealing with Excel files

开发者 https://www.devze.com 2022-12-15 19:48 出处:网络
I want to read ms-excel file in java and I\'ve also downloaded the compressed file containing \'poi\' api by Apache( on the site http://jakarta.apache.org/poi) but where actually to unzip it? means in

I want to read ms-excel file in java and I've also downloaded the compressed file containing 'poi' api by Apache( on the site http://jakarta.apache.org/poi) but where actually to unzip it? means in which path?? whether in org.Apache or some开发者_StackOverflow社区where else??


I just unpacked it in the same directory as my NetBeans project and created a library as shown here.

Addendum: Download the preferred file from Apache Poi and unzip it in a convenient place such as your project directory. I added poi-3.6-20091214.jar as a new library from my NetBeans project directory.

$ ls -1
build
build.xml
manifest.mf
nbproject
poi-3.6
src
test
test.xls

Building form the command line is straightforward, too.

$ javac \
  -cp poi-3.6/poi-3.6-20091214.jar \
  -d build/classes \
  -sourcepath src \
  src/POIExcelReader.java
0

精彩评论

暂无评论...
验证码 换一张
取 消