Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ant jar signing issues  RSS feed

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to sign a jar file with the ant task..
<signjar jar="${build.dir}\${name}.jar" alias="gthought" storepass="private" keystore="myKeystore" />
And I am getting the following error message...

Execute failed: java.io.IOException: CreateProcess: jarsigner.exe -keystore C:\projects\GLMod\myKeystore -storepass private C:\projects\GLMod\build\glmod.jar gthought error=2

If I do this from the command line and not with ANT it works fine. Anyone see what is going on?
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems to be right on topic:
http://www.coderanch.com/t/107138/tools/signjar-ant-eclipse-BUILD-FAILED
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's just strange. In IDEA I went to the settings and added a Path Variable of JAVA_HOME to my Java home directory. Now it works. That just seems strange to me since IDEA could find java.exe and javac.exe just fine. Oh well, works now. Thanks Tom for the link.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!