• Post Reply Bookmark Topic Watch Topic
  • New Topic

InterruptedException  RSS feed

 
Shriram Gopalakrishnan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have these two lines of code to execute UNIX command and then waits for the process to complete:
permissions =
Runtime.getRuntime().exec("chown "+chown+" "+directory.getAbsolutePath());
returnValue = permissions.waitFor();


But I am getting this exception although I do not have any other thread interrupting

java.lang.InterruptedException at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Unknown Source)
at java.lang.UNIXProcess.waitFor(Unknown Source)

can anyone help on the same.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!