6
votes

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

3

3 Answers

12
votes

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 :))

4
votes

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!

1
votes

I also selected 'Separate JRE' this allowed me to select the JDK rather than the JRE and that presumably enabled ANT to find the jarsigner in the JDK bin directory