Date
1 - 4 of 4
cf": error=2, No such file or directory and error=2
Varsha Nagraj
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@...>
Sounds like the path is probably not setup correctly in the java launcher.
toggle quoted message
Show quoted text
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 --
Matthew Sykes matthew.sykes(a)gmail.com |
|
Varsha Nagraj
Hello Mathew,
Can you please let me know how do I add this to my PATH. Previously I would run the same commands on a windows system from eclipse. I have not set any PATH env on windows as I remember. |
|
Amit Kumar Gupta
Hi Varsha,
toggle quoted message
Show quoted text
Can you do the following: 0. show the output of running "which cf" in the terminal 1. show the output of running "echo $PATH" in the terminal 2. restart Eclipse 3. Add the line Matthew suggested to dump the PATH that Eclipse knows about, above the line where you execute the command 4. Re-run the execution from Eclipse, and show the output from the PATH dump. Thanks, Amit On Wed, Oct 21, 2015 at 11:36 PM, Varsha Nagraj <n.varsha(a)gmail.com> wrote:
Hello Mathew, |
|