I'm writing a program in scala which call:
Runtime.getRuntime().exec( "svn ..." )
I'm no scala programmer, but what I would do in any language, is to execute something like '
svn help' just to check the return code (0 or 1) of the exec method... if it fails the svn is not in the path :P
Runtime rt = Runtime.getRuntime(); Process proc = rt.exec("svn help"); int exitVal = proc.exitValue();
By convention, the value 0 indicates normal termination.