Project

General

Profile

Working with windows

Added by R Balachandar over 14 years ago

Hi all,

I installed cygwin and added the '$CYGWIN_HOME/bin/' in path environment variable so that jsaga can look for /bin/sh commands. But still i am facing the error when execute jsaga-job-run -Executable date -r local:/localhost

**************************************************
Exception in thread "main" NoSuccess: java.io.IOException: Cannot run program "/
bin/bash": CreateProcess error=3, The system cannot find the path specified
at fr.in2p3.jsaga.adaptor.job.local.LocalJobControlAdaptor.submitInterac
tive(LocalJobControlAdaptor.java:91)
at fr.in2p3.jsaga.impl.job.instance.AbstractSyncJobImpl.doSubmit(Abstrac
tSyncJobImpl.java:135)
at fr.in2p3.jsaga.impl.task.AbstractTaskImpl.run(AbstractTaskImpl.java:1
01)
at fr.in2p3.jsaga.impl.job.instance.JobImpl.run(JobImpl.java:43)
at fr.in2p3.jsaga.command.JobRun.main(JobRun.java:88)
Caused by: java.io.IOException: Cannot run program "/bin/bash": CreateProcess er
ror=3, The system cannot find the path specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at fr.in2p3.jsaga.adaptor.job.local.LocalJobControlAdaptor.submitInterac
tive(LocalJobControlAdaptor.java:86)
... 4 more
Caused by: java.io.IOException: CreateProcess error=3, The system cannot find th
e path specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 7 more


Can someone update me and document on where to configure the path and how ?

regards
Balachandar


Replies (1)

RE: Working with windows - Added by Reynaud Sylvain over 14 years ago

Hi Balachandar,

If you expect JSAGA to find the shell executable within the path environment variable, then you should configure it to run sh.exe instead of /bin/bash.

This can be done by adding the following line to your $HOME/.jsaga/jsaga-user.properties file:

local.default.ShellPath=sh.exe

Please note that I have updated the FAQ (because of a limitation that prevent from doing this within the etc/jsaga-universe.xml file):
http://grid.in2p3.fr/software/jsaga-dev/adaptors/jsaga-adaptor-classic/faq.html#windows

Regards,
Sylvain

    (1-1/1)