• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Ant jar signing issues

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • 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?
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems to be right on topic:
https://coderanch.com/t/107138/tools/signjar-ant-eclipse-BUILD-FAILED
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • 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.
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic