Gopal
Gopal

Reputation: 675

Exception in execute jar

java.lang.SecurityException: SHA1 digest error for com/.../classfilename.class

I just changed one class in jar using winrar

Upvotes: 0

Views: 103

Answers (2)

Ankur
Ankur

Reputation: 788

You should try to unzip your jar, Put your new class file and sign jar again with the required certificate.

Upvotes: 0

Joachim Sauer
Joachim Sauer

Reputation: 308021

The jar you modified was signed. Now your modification was detected by the system which doesn't allow execution of modified, signed jar files.

There's a reason that the jar was signed in the first place ...

Upvotes: 3

Related Questions