Execute failed: java.io.IOException: Cannot run program “jarsigner.exe“: CreateProcess error=2

1.设置ecplise的jre为jdk

Execute failed: java.io.IOException: Cannot run program “jarsigner.exe“: CreateProcess error=2

2.ant 右键——run as ——External Tools Configurations——JRE——Runtime JRE 选择 Execution environment 

Execute failed: java.io.IOException: Cannot run program “jarsigner.exe“: CreateProcess error=2