Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

System.exec () returning "error2"

 
Thomas Smets
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a problem I found on www.artima.com & for which no answer has come out ...
May be some one could help ?
Tx,
Thomas,
<snip>
Hi there,
I have an issue related to trying to run a process through Runtime.exec.
An IOException is thrown with the message IOException: curl not found (the
command is curl).
Typically if a program cannot be found through the path, the error message
is "error 2" NOT "not found".
This program works on my home NT Box running Resin, but does not work on the
production unix server running JRun. Once upon a time it did work on the
production server, but I don't know what could have changed to make it stop
working. The webmasters have little idea but do not think it's a permissions
problem.
Has anyone experienced this before or have a suggestion on how to fix it?
thank you
Daniel Kirk
</snip>
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps the mime type is not found?? The question does not really give any hints as to how this is coded.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic