728x90

Java/JAVA 3

Java poi - powerpoint 사용 시 "Zip bomb detected" Error 해결방법

Java poi library를 사용해서 powerpoint 를 열고 수정하고 저장하는 내용의 프로그램을 만드는 중에 실행 시 아래와 같은 에러가 발생했다.java.io.IOException: Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data.This may indicate that the file is used to inflate memory usage and thus could pose a security risk.You can adjust this limit via ZipSecureFile.setMinInflateRatio() if you need ..

Java/JAVA 2024.09.13

Java poi library 3.17 에서 4.1.2로 변경 (poi 4.1.2 ver download url)

기존에 Java poi 3.17을 사용했던 소스에서 아래와 같은 Warning message가 떴다. WARNING: An illegal reflective access operation has occurredWARNING: Illegal reflective access by org.apache.poi.openxml4j.util.ZipSecureFile$1 (rsrc:poi-ooxml-3.17.jar) to field java.io.FilterInputStream.inWARNING: Please consider reporting this to the maintainers of org.apache.poi.openxml4j.util.ZipSecureFile$1WARNING: Use --illegal-acce..

Java/JAVA 2024.08.23

[JAVA-SWT] Eclipse에서 swt library추가하여 JAVA 프로젝트 생성

Java 프로젝트에서 swt library를 사용하기 위하여 추가하는 방법을 정리하고자 한다. 우선 swt library를 다운받아서 준비해야한다. (사이트에서 다운받아도 되고 나는 받아놓은 파일이 있어서 첨부해놨으니 혹시 필요하신 분은 다운받아서 쓰셔도 됩니다.) 라이브러리 파일의 위치를 나중에 헷갈리지 않도록 이클립스 workspace위치 폴더 > 프로젝트 파일 > lib폴더를 만들어서 넣어놓는다. 그러려면 우선 프로젝트파일을 만들어놓은 상태여야 겠다. 그렇게 파일을 넣고 나서 refresh를 하고나면 아래와 같이 jar파일이 보인다! 프로젝트명을 우클릭 하면 build path > Configure Build Path로 들어간다. 이 부분에서 라이브러리를 등록해줄 수 있다. Java Build Pa..

Java/JAVA 2023.07.06
728x90