skip to Main Content

apache POI java.lang.NoClassDefFoundError: org/apache/commons/compress/archivers/zip/ZipFile

I try to make word document using Apache POI 4.0.0, but i get error Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/commons/compress/archivers/zip/ZipFile at org.apache.poi.openxml4j.opc.OPCPackage.create(OPCPackage.java:365) at org.apache.poi.xwpf.usermodel.XWPFDocument.newPackage(XWPFDocument.java:158) at org.apache.poi.xwpf.usermodel.XWPFDocument.(XWPFDocument.java:149) at model.Model_dokumen.Cetak(Model_dokumen.java:32) at view.Frame_surat.cetak_dan_simpanActionPerformed(Frame_surat.java:414) at view.Frame_surat.access$400(Frame_surat.java:23) at view.Frame_surat$5.actionPerformed(Frame_surat.java:211) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)…

VIEW QUESTION

Apache POI exception

I need to convert a docx to a PDF and I am going with Apache POI. This is my POM: <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.0.0</version> </dependency> <dependency> <groupId>fr.opensagres.xdocreport</groupId> <artifactId>org.apache.poi.xwpf.converter.pdf</artifactId> <version>1.0.6</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>4.0.0</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml-schemas…

VIEW QUESTION

Spring @RequestMapping "Not Contains" Regex – SEO

I have this RequestMapping: @RequestMapping(value = "/route/to-{destination}-from-{departure}.html", method = {RequestMethod.GET, RequestMethod.HEAD}) And I would like to add that RequestMapping: @RequestMapping(value = "/route/to-{destination}.html", method = {RequestMethod.GET, RequestMethod.HEAD}) So it can serve all the "without departure" routes. That, however, creates a conflict…

VIEW QUESTION

Share image on other apps not working in Oreo 8.0

I am using this code to share the image on Whatsapp, Facebook, and Instagram etc. This code works fine below API 25 but Not Working above API 25. Intent share = new Intent("android.intent.action.SEND"); share.setType("image/jpeg"); share.putExtra("android.intent.extra.STREAM", Uri.parse(this.imgUrl)); startActivity(Intent.createChooser(share, "via"));

VIEW QUESTION

Solr copy field copied to another field – Apache

I have the follows configuration: ... <field name="spellcheck" type="text_spell" indexed="true" stored="true" multiValued="true" /> <field name="spellcheck_de" type="text_spell_de" indexed="true" stored="true" multiValued="true" /> <field name="spellcheck_en" type="text_spell_en" indexed="true" stored="true" multiValued="true" /> <field name="spellcheck_fr" type="text_spell_fr" indexed="true" stored="true" multiValued="true" /> <field name="spellcheck_ja" type="text_spell" indexed="true" stored="true" multiValued="true"…

VIEW QUESTION
Back To Top
Search