Re: cf": error=2, No such file or directory and error=2


Matthew Sykes <matthew.sykes@...>
 

Sounds like the path is probably not setup correctly in the java launcher.
You should dump your path before attempting to run `cf` and make sure the
directory that contains it is actually on the PATH.

System.out.println(System.getenv("PATH"));

On Wed, Oct 21, 2015 at 1:50 AM, Varsha Nagraj <n.varsha(a)gmail.com> wrote:

This question is regarding "cf" - cloudfoundry. I have installed eclipse
Mars on Mac. Also have installed cf and run a "brew intsall protobuf". I am
executing the following in my program from eclipse :

p = Runtime.getRuntime().exec(cmd);

This is giving me: Cannot run program "cf": error=2, No such file or
directory and error=2, No such file or directory errors. The "cf" command
works fine from the command line but I see this error while running any
"cf" commands from eclipse.
--
Matthew Sykes
matthew.sykes(a)gmail.com

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.