Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] SecurityException using latest self-contained executable

On Mon, Sep 23, 2013 at 3:03 PM, Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:
On Fri, Sep 20, 2013 at 11:33 PM, Bo Shi <bs1984@xxxxxxxxx> wrote:
Sorry if this is not the right place to report this issue.  I'm having trouble running the latest official self-contained executable on OSX:

tmp $ java -version
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

Resolving (
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2665376 (2.5M) [application/x-shar]

100%[===============================================================================>] 2,665,376   1.67MB/s   in 1.5s

2013-09-20 14:27:48 (1.67 MB/s) - ‘’ saved [2665376/2665376]

Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
at java.util.jar.JarVerifier.processEntry(
at java.util.jar.JarVerifier.update(
at java.util.jar.JarFile.initializeVerifier(
at java.util.jar.JarFile.getInputStream(
at sun.misc.URLClassPath$JarLoader$2.getInputStream(
at sun.misc.Resource.cachedInputStream(
at sun.misc.Resource.getByteBuffer(
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(

this was broken by the move to use the new signing plugin.

As a workaround download the jars
into one directory, copy the shell script
to the same folder make it executable (chmod +x
set the environment variable JGIT_CLASSPATH to the directory containing all these jars:
e.g. export JGIT_CLASSPATH=/path/to/jgit/jars/*
and run

Proposed fix for this problem 


Back to the top