在NetBeans中,我创建了一个Exporter类,它使用APACHE POI将一些数据导出到EXCEL文件,后者使用XMLBeans.
我通过下载zip二进制文件并手动添加jar来添加APACHE POI 3.10.1库.
当我在同一个项目中使用这个类时,一切都正常运行.
然后我通过右键单击Libraries - > Add Project将此类添加到另一个项目中.
但是当我尝试运行时,我在编译时遇到以下错误.
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
Run Code Online (Sandbox Code Playgroud)
我不知道这可能是什么,但让我发疯.