I'm compiling an app with a few libraries that i have created and it's failing to compile with this error:
The nu.xom package is an external .jar file used by my XOM library.
The org.apache.xerces.dom package is again part of an external file named dtd-xercesImpl.jar which is required by the XOM library.
The error implies that these external .jar files have been compiled in a way that makes then unsuitable for B4A.
I can download the java XOM source code and compile it myself and hopefully that'll fix that problem, and i'll have to Google to see if there's a compatible version of the dtd-xercesImpl.jar library.
But before i started looking for a solution i tried the simple demo B4A project from my XOM library thread.
It compiles and runs perfectly.
So i'm just asking why one B4A project fails to compile and another successfully compiles with the exact same collection of library files.
Searching the forum i found a reference to a similar error and the reason for the error was that two referenced libraries include the same class.
My project that fails to compile is a large project written by someone else, i'm pretty sure that there's no class being included more than once.
Has anyone got any suggestions?
Shall i simply recompile these two external .jar files from source and hope that'll be a solution or is it more likely that somewhere in the failing project there is a class being included more than once?
Thanks.
Martin.
Compiling generated Java code. 13.44
Convert byte code - optimized dex. Error
warning: Ignoring InnerClasses attribute for an anonymous inner class
(nu.xom.Verifier$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.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.xerces.dom.CharacterDataImpl$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.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.xerces.dom.ParentNode$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.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.xerces.dom.SecuritySupport$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.
** Followed by many more simlar lines **
The nu.xom package is an external .jar file used by my XOM library.
The org.apache.xerces.dom package is again part of an external file named dtd-xercesImpl.jar which is required by the XOM library.
The error implies that these external .jar files have been compiled in a way that makes then unsuitable for B4A.
I can download the java XOM source code and compile it myself and hopefully that'll fix that problem, and i'll have to Google to see if there's a compatible version of the dtd-xercesImpl.jar library.
But before i started looking for a solution i tried the simple demo B4A project from my XOM library thread.
It compiles and runs perfectly.
So i'm just asking why one B4A project fails to compile and another successfully compiles with the exact same collection of library files.
Searching the forum i found a reference to a similar error and the reason for the error was that two referenced libraries include the same class.
My project that fails to compile is a large project written by someone else, i'm pretty sure that there's no class being included more than once.
Has anyone got any suggestions?
Shall i simply recompile these two external .jar files from source and hope that'll be a solution or is it more likely that somewhere in the failing project there is a class being included more than once?
Thanks.
Martin.