I'm finding I'm unable to use the ant tool with Netbeans in Windows
2000 to sign the JAR files I generate. I'm using the following ant
tag, and the .keystore file is in my home directory:
<signjar jar="WebStartAp p.jar" alias="kitfox"
storepass="xxxx xxxx"/>
However, when I try to jar and sign this via Netbeans, I get:
Signing Jar : C:\dev\java_dev \webstart_test\ WebStartApp.jar
ant_make.xml [51] Execute failed: java.io.IOExcep tion: CreateProcess:
jarsigner -storepass xxxxxxxx
C:\dev\java_dev \webstart_test\ WebStartApp.jar kitfox error=2
BUILD FAILED
Total time: 0 seconds
However, if I try executing the shell code ant seems to generate, my
jar is signed with no errors:
jarsigner -storepass xxxxxxxx
C:\dev\java_dev \webstart_test\ WebStartApp.jar kitfox
Also, when I execute ant 1.5.3 from the command line, it also
succeeds.
Any ideas what's going wrong? Netbeans uses ant 1.5.1 and won't let
me change it to another version.
Mark McKay
2000 to sign the JAR files I generate. I'm using the following ant
tag, and the .keystore file is in my home directory:
<signjar jar="WebStartAp p.jar" alias="kitfox"
storepass="xxxx xxxx"/>
However, when I try to jar and sign this via Netbeans, I get:
Signing Jar : C:\dev\java_dev \webstart_test\ WebStartApp.jar
ant_make.xml [51] Execute failed: java.io.IOExcep tion: CreateProcess:
jarsigner -storepass xxxxxxxx
C:\dev\java_dev \webstart_test\ WebStartApp.jar kitfox error=2
BUILD FAILED
Total time: 0 seconds
However, if I try executing the shell code ant seems to generate, my
jar is signed with no errors:
jarsigner -storepass xxxxxxxx
C:\dev\java_dev \webstart_test\ WebStartApp.jar kitfox
Also, when I execute ant 1.5.3 from the command line, it also
succeeds.
Any ideas what's going wrong? Netbeans uses ant 1.5.1 and won't let
me change it to another version.
Mark McKay