NeuronRobotics / nrjavaserial

A Java Serial Port system. This is a fork of the RXTX project that uses in jar loading of the native code.
Other
345 stars 143 forks source link

Duplicated ressource in distribution jar #68

Closed gchauvet closed 4 years ago

gchauvet commented 8 years ago

Some files (in meta-inf folder) are duplicated. When we want to use this library in a applet way, our JRE raise an exception because "LICENSE.txt" entry is duplicated in JAR file (this is not the single file).

GitoMat commented 8 years ago

I have the same issue. "jarsigner" cannot process the jar file. The command fails: $ jarsigner -keystore store.jks -signedjar output/nrjavaserial-3.11.0.jar input/nrjavaserial-3.11.0.jar keyalias jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: META-INF/LICENSE.txt

The file is included twice: unzip -l nrjavaserial-3.11.0.jar | grep LICENSE.txt 11358 2014-01-05 18:01 META-INF/LICENSE.txt 11560 2013-06-07 23:49 META-INF/LICENSE.txt

madhephaestus commented 8 years ago

Let me know if that worked for you?

GitoMat commented 8 years ago

Yes, signing works now, but as I discovered it already worked before this commit as LICENCE.txt wasn't in the Jar anymore.