디버깅 정보에
java.lang.IllegalArgumentException: MALFORMED
import java.nio.charset.Charset;
Charset CP866 = Charset.forName("CP866");
zipFile = new ZipFile( f, CP866 );
코드수정 후 해결이 되었다.
추가..
이클립스 문자열 인코딩 설정 확인한 후 진행해야된다.
ZipFile
public ZipFile(File file, Charset charset) throws IOException
참조
https://stackoverflow.com/questions/20013091/java-unzip-error-malformed
Java // unzip error :MALFORMED
I would like to unzip recursively some archive .zip. I use java.util.zip and I can't use an other library. My code : public static void unzip(String file) { try { File fSourceZip = ...
stackoverflow.com
https://stackoverflow.com/questions/4782662/java-char-set-encoding-problemfrom-utf8-to-cp866
'개발 > 에러 해결' 카테고리의 다른 글
[자바7] openssl tomcat 실행 오류 Invalid keystore format (0) | 2022.08.05 |
---|---|
org.xml.sax.SAXParseException : <HR> (0) | 2022.07.26 |
[큐브리드] 윈도우 설치 시 한글 문자 깨짐 해결 (0) | 2022.05.17 |
[스프링]model 값에 자바객체를 넣고 jsp에서 jstl로 이용시 주의점 (0) | 2022.03.31 |
[확인] 이클립스 jdk1.7 junit4 테스트 오류 (0) | 2022.01.27 |