I made a program with third party libraries like apache and i'm trying to put them all in a runnable .jar file. I searched a lot, and i found a program named "JarSplice - The Fat Jar Creator" but when i go to create the final jar i'm getting the error:
Jar creation failed due to the following exception:
duplicate entry: org/apache/xmlbeans/xml/stream/Location.class
My 3rd party libs are:
poi-3.14-20160307.jar
poi-examples-3.14-20160307.jar
poi-excelant-3.14-20160307.jar
poi-ooxml-3.14-20160307.jar
poi-ooxml-schemas-3.14-20160307.jar
poi-scratchpad-3.14-20160307.jar
xmlbeans-2.6.0.jar
I dont see any duplicates :/ So what am i doing wrong? Is there any way to void this error? Any help will be highly appreciated!
This worked for me at the end. (for netbeans users) How to Build a Fat JAR using NetBeans IDE