DEV πŸ’™/JAVA

[JAVA] μžλ°” μ—‘μ…€νŒŒμΌ μž‘μ—…_Apache POI 라이브러리

DONI. 2020. 3. 10. 18:03
λ°˜μ‘ν˜•

[ μ•„νŒŒμΉ˜ POI 라이브러리λ₯Ό μ΄μš©ν•˜μ—¬ μ—‘μ…€νŒŒμΌ μž‘μ—… ]

 

1 Apache POI 라이브러리 λ‹€μš΄λ‘œλ“œ 접속
http://poi.apache.org/download.html

 

Apache POI - Download Release Artifacts

Apache POI - Download Release Artifacts Available Downloads This page provides instructions on how to download and verify the Apac

poi.apache.org

 

 

2 poi-bin-4.1.2-20200217.zip λ‹€μš΄λ‘œλ“œ
κ°€μž₯ μ΅œμ‹ λ²„μ „μΈ 4.1.2버전을 λ‹€μš΄λ‘œλ“œν•΄μ„œ μ‚¬μš©ν•˜μ˜€λ‹€
(μœˆλ„μš° ν™˜κ²½μ—μ„œλŠ” zip, λ¦¬λˆ…μŠ€ λ“±μ˜ ν™˜κ²½μ—μ„œλŠ” tar.gz λ‹€μš΄λ‘œλ“œ)

 

 

3 μ••μΆ•ν•΄μ œ ν›„ 라이브러리λ₯Ό νŒ¨ν‚€μ§€μ— Import
ν”„λ‘œμ νŠΈ 우클릭 - Build Path - Configure Build Path... - Java Build Path - Libraries - Classpath에 Add External JARs...

기본적으둜 μœ„ μ—¬μ„―κ°œλ§Œ μ μš©ν•˜λ©΄ λ˜λŠ” 것 같은데
.xlsx νŒŒμΌμ„ μ‚¬μš©ν•˜κ±°λ‚˜ java.lang.module... μ—λŸ¬κ°€ 계속 λ°œμƒν•œλ‹€λ©΄
lib폴더와 ooxml-lib폴더 내에 μžˆλŠ” jarνŒŒμΌλ“€λ„ μ μš©ν•΄λ³΄κΈ°!

 

그러면 μ΄λ ‡κ²Œλ‚˜ λ§Žλ‹€...^^
뭐가뭔지 λͺ¨λ₯Όλ•ŒλŠ” μ „λΆ€λ‹€..γ…Žγ…Žγ…Ž

μ΄λ ‡κ²Œ λ„£κ³  Apply ν•˜λ©΄ Referenced Librariesμ—μ„œ 보일 것!

λ°˜μ‘ν˜•