In NetBeans, I created an Exporter class that exports some data to an EXCEL file using the APACHE POI, which uses XMLBeans.
I added APACHE POI 3.10.1 libraries by downloading zip files and adding banks manually.
When I use this class inside the same project, everything runs correctly.
Then I added this class to another project by right-clicking Libraries β Add Project.
But when I tried to run this, during compilation I got the following error.
Signing JAR: C:\Users\c\p\dist\lib\xmlbeans-2.6.0.jar to C:\Users\c\p\dist\lib\xmlbeans-2.6.0.jar as nb-jfx jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: org/apache/xmlbeans/xml/stream/Location.class Enter Passphrase for keystore: Enter key password for nb-jfx: C:\Users\c\p\nbproject\jfx-impl.xml:1465: The following error occurred while executing this line: C:\Users\c\p\nbproject\jfx-impl.xml:2968: The following error occurred while executing this line: C:\Users\c\p\nbproject\jfx-impl.xml:1940: jarsigner returned: 1
I donβt know what it can be, but it drives me crazy.
source share