aspose file tools*
The moose likes Linux / UNIX and the fly likes problem while running the command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "problem while running the command "jarsigner" on linux through Runtime.exec()" Watch "problem while running the command "jarsigner" on linux through Runtime.exec()" New topic
Author

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

Raghu Raghavender
Greenhorn

Joined: Jun 10, 2008
Posts: 3
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

Joined: Jun 02, 2003
Posts: 1923

Show your javacode.
Which environment variables are you talkiing about?


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem while running the command "jarsigner" on linux through Runtime.exec()