I have a Java project which includes the Xerces library.
When I process the project with Proguard, I get the warning:
Note: duplicate definition of library class [org.w3c.dom.html.HTMLDOMImplementation]
I see in Xerces that this class exists, and that a same class exists in the rt.jar of JDK 1.6.
The jar file created by ProGuard does not launch (error: "A Java Exception Has Occurred"). How can I solve this problem? Thx!
(note: I work with Netbeans)
1) Either you should remove the class from one of the library (which is not advisable as it might break other classes)
2) Find a jar withouth this class. For e.g. the class which you are using in your application might be available in a number of jars. So get the jar where this conflicting class is not present but other classes which you want are present (this might take some time)
3) (and best) just ignore the error. I don't think it should give any problem. Based on which jar occurrs first in the class path, the class will be picked up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With