Runtime error: java.io.IOException: unable to start program "jarsigner.exe": CreateProcess

I try to run the buildXXX.xml file using ANT, but I get this error:

Buildfile: C:\Users\Amira\Desktop\SaloméTMF\Salome TMF V3.1SourceCode\buildSOAPClient.xml init: prepare: compile: makesoapjar: makeihmjar: makecorejar: makedatajar: makeapijar: makeloginjar: maketoolsjar: makeplugintoolsjar: makeUpdatejar: makebootjar: makecodexjar: makejar: signjar: [signjar] Signing JAR: C:\Users\Amira\Desktop\SaloméTMF\Salome TMF V3.1SourceCode\distrib\salome_tmf-soap-client\activation.jar to C:\Users\Amira\Desktop\SaloméTMF\Salome TMF V3.1SourceCode\distrib\salome_tmf-soap- client\activation.jar as salome_tmf BUILD FAILED C:\Users\Amira\Desktop\SaloméTMF\Salome TMF V3.1SourceCode\buildSOAPClient.xml:251: Execute failed: java.io.IOException: Cannot run program "jarsigner.exe": CreateProcess error=2, Le fichier spécifié est introuvable Total time: 5 seconds 

I did a search, so I found that I should use the JDK instead of the JRE, so I modify it, but the same error persists.

Any idea would be appreciated greetings

+4
source share
3 answers

The solution is to use the JDK as the installed JRE in eclipse and set the JAVA-HOME variable to the JDK path. Hope this helps others :))

+11
source

My solution was to change "Run in the same JRE as the workspace" to "Separate JRE" , which is strange because these are the same JREs .

Weird!

+3
source

I also selected "Separate JRE", it allowed me to select the JDK rather than the JRE, and supposedly turned on ANT to find the jarsigner in the JDK bin directory

0
source

All Articles