Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execute failed: java.io.IOException: Cannot run program "jarsigner.exe": CreateProcess

Tags:

xml

eclipse

ant

I'm trying to run a buildXXX.xml file using ANT but i'm getting 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 made a search so i found that i should use JDK instead of JRE so i change it but the same error persist.

Any idea will be appreciated cheers

like image 602
Amira Manai Avatar asked Jul 21 '12 16:07

Amira Manai


2 Answers

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

like image 187
Amira Manai Avatar answered Nov 15 '22 09:11

Amira Manai


My solution was to change from 'Run in the same JRE as the workspace' to 'Separate JRE' which is weird because these are the same JRE.

Strange!

like image 20
PeterVermont Avatar answered Nov 15 '22 11:11

PeterVermont