File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes System.exec ()  returning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "System.exec ()  returning "error2"" Watch "System.exec ()  returning "error2"" New topic

System.exec () returning "error2"

Thomas Smets
Ranch Hand

Joined: Dec 11, 2001
Posts: 111
This is a problem I found on & for which no answer has come out ...
May be some one could help ?
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
Has anyone experienced this before or have a suggestion on how to fix it?
thank you
Daniel Kirk

Thomas Smets
Just another developper
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Perhaps the mime type is not found?? The question does not really give any hints as to how this is coded.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: System.exec () returning "error2"
It's not a secret anymore!