i have imported a certain library which executes the following command
Runtime.getRuntime().exec("svd");
Now in my bash shell, i can execute svd as it points to installed folder "/usr/local/bin/svd". However my java programs are unable to execute "svd" and eclipse returns with error "Cannot run program "svd": error=2, No such file or directory"
I have added the following to my environment variables in run configurations of eclipse.
$PATH = /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin/svd
svd = /usr/local/bin/svd
However eclipse still says its unable to run program "svd". Is there any way to fix this other than manually writing the full path?
e.g Runtime.getRuntime().exec("/usr/local/bin/svd");