Вопрос

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

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top