Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem while running the command "jarsigner" on linux through Runtime.exec()

 
Raghu Raghavender
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

 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show your javacode.
Which environment variables are you talkiing about?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic