javajarsignerinstallanywhere

How to use Jarsigner on machine which dosen't have JDK


I want to use jarsigner.exe on a machine where I don't have JDK installed or JAVA_HOME set.

We are using installanywhere to install our product and inside that we have bundled JRE. JRE doesn't have jarsigner.exe. I tried to included jarsigner.exe inside jre and tried to use it but it's not working.

With regards, Avinash Nigam


Solution

  • To make jarsigner work with JRE instead of JDK. Need to bundle these files in JRE from JDK

    1. From \bin\jarsigner.exe to \bin\jarsigner.exe
    2. From \bin\msvcr100.dll to \bin\msvcr100.dll
    3. From \bin\jli.dll to \bin\jli.dll
    4. From \lib\tool.jar to \lib\tool.jar

    I tested with this and found it working for me.