Tuesday, November 14, 2017

Create a blank word document with Apache POI

Leave a Comment

I try to create a blank word document, so I read tutorials about Apache POI, but the installation process failed.

I have added libs file in my project's lib folder, but I got an error of type Duplicate file exception.

The duplicated file was LICENCE.

As I read on other users' question, I add this in my build gradle :

packagingOptions {     exclude 'META-INF/LICENSE' } 

But now, I get this error :

Warning:warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.xmlbeans.XmlBeans$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class.

Error:Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/apache/xmlbeans/xml/stream/Location;

Thanks for your help !

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment