예제
protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws IOException {
FileOutputStream fOS = FileUtility.getFileOutputStream(FileUtility.getFileName());
JarOutputStream jarOS = new JarOutputStream(fOS);
jarOS.putNextEntry(new JarEntry("foo"));
jarOS.putNextEntry(new JarEntry("foo2"));
jarOS.putNextEntry(new JarEntry("foo3"));
jarOS.close();
fOS.close();
}
솔루션
아티팩트에 JAR을 사용해야 하는 경우 응용프로그램을 시작하기 전에 JAR을 사용하거나 일괄처리 작업에서 오프라인 상태로 만드십시오.