[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

java.lang.SecurityException: Invalid signature file digest for Manifest main attributes



Control: tag -1  help


Hi,

Arduino packaging now builds for 1.8.2.  Get the source code for it through

   debcheckout arduino


However there is Java error and that is reason why
the Debian Java packaging team is in the CC.


The complete error
----8<---8<----
$ arduino
Picked up JAVA_TOOL_OPTIONS: 
Error parsing gtk-icon-sizes string: ''
java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
	at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:314)
	at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:268)
	at java.util.jar.JarVerifier.processEntry(JarVerifier.java:316)
	at java.util.jar.JarVerifier.update(JarVerifier.java:228)
	at java.util.jar.JarFile.initializeVerifier(JarFile.java:383)
	at java.util.jar.JarFile.getInputStream(JarFile.java:450)
	at sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977)
	at sun.misc.Resource.cachedInputStream(Resource.java:77)
	at sun.misc.Resource.getByteBuffer(Resource.java:160)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:454)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at processing.app.BaseNoGui.initPackages(BaseNoGui.java:483)
	at processing.app.Base.<init>(Base.java:252)
	at processing.app.Base.main(Base.java:135)
$
----8<---8<----

My websearch did bring me to https://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar

It tells me to tweak a build.xml file.
It is the point where I get lost, where I need help.

Is it the file app/build.xml that needs something like

        <zipfileset src="${output.dir}/deps.jar" excludes="META-INF/*.SF" />
        <manifest>
            <attribute name="Main-Class" value="com.mycompany.MyMain" />
        </manifest>

??


Groeten
Geert Stappers
-- 
Leven en laten leven

Attachment: signature.asc
Description: Digital signature


Reply to: