Launching jarsigner.exe on windows os which jdk/jre not installed by installer

这一生的挚爱 提交于 2019-12-06 14:18:35

There are no specific command-line parameters, however while invoking jarsigner, you can still set the java.home property to point to your desired JRE bundled with your application.

For instance, you could invoke the jarsigner with either:

  • ProcessBuilder and set the java.home property,
  • or a variant of Runtime.exec() allowing to set the envp environment variables,
  • or a batch/shell script and set the JAVA_HOME property in it.

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

From \bin\jarsigner.exe to \bin\jarsigner.exe From \bin\msvcr100.dll to \bin\msvcr100.dll From \bin\jli.dll to \bin\jli.dll From \lib\tool.jar to \lib\tool.jar I tested with this and found it working for me.

Vipul Shah

Stolen from Java Error opening registry key

Remove if any.

on 32 bit machine

java.exe, javaw.exe and javaws.exe from your Windows\System32 folder

on 64 bit machine

remove from Windows\SysWOW64.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!