Reputation: 35
When signing and building my application for release through ant in eclipse I am getting an error.
I am using the ant task that comes with the android sdk.
Keystore file, alias, pass are defined in ant.properties.
BUILD FAILED
C:\Program Files (x86)\Android\android-sdk-windows\tools\ant\build.xml:981: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk-windows\tools\ant\build.xml:995: Execute failed: java.io.IOException: Cannot run program "jarsigner.exe" (in directory "C:\dev\projects\sample1"): CreateProcess error=2, The system cannot find the file specified
Followed instructions here: http://developer.android.com/guide/developing/building/building-cmdline.html
Upvotes: 1
Views: 1911
Reputation: 7752
It's looking for the Jar signer in the wrong location.
Might be worth checking your path environment variable is set up correctly (so that it can find jarsigner.exe)
Upvotes: 0
Reputation: 23873
You need to have the folder YOUR_JDK\bin in your path
(YOUR_JDK being the folder where you have installed the Java JDK)
Upvotes: 1