• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem while running "jarsigner" command on linux through Runtime.exec() method  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was trying to run the "jarsigner " command through java code by using Runtime.exec() method on linux but i am getting the following exception

java.io.IOException: "/home/user/Java/java-1.5.0-sun-1.5.0_update17/bin/jarsigner": not found

i am getting the above exception even though i am having the jarsigner tool in the above specified location. The environment variables are set correctly...

i am able to run the same command through command prompt of linux but was unable to run it through java code..


please give some suggestions


Thanks in advance

 
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does article help? It covers common pitfalls in using Runtime.exec
 
Raghu Raghavender
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the solution for the above problem....any ways thanks
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done sorting it out, but please tell us what you did in case somebody has a similar problem in the future.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!