Displaying 1 result from an estimated 1 matches for "rservestartcommand".
2009 Jun 12
0
JRclient.RSrvException Exception: Handshake
...y {
return new Rconnection();
} catch (RSrvException e) {
//If we get this kind of error, it may be because Rserve is not running
if (e.getMessage().equals("Cannot connect: Connection refused")) {
try {
String rserveStartCommand = "R CMD Rserve --vanilla";
//do a blocking call to the shell command for starting Rserve
int exitValue = Runtime.getRuntime().exec(rserveStartCommand).waitFor();
//if it returned success, try connecting again...