[R] Starting Rserve in Java using Runtime Failed

From: Shing Hing Man <matmsh_at_yahoo.com>
Date: Tue 11 Jul 2006 - 04:45:32 EST

I have tried using the following piece of Java code to

start Rserve on my Linux PC without success.

try {
String command = "R CMD Rserve ";
Process p = Runtime.getRuntime().exec(command); returnCode = p.waitFor();
if (returnCode != 0) {
errorMessage = "Unexpected return code = " + returnCode;

} catch (Exception e) {
errorMessage = "Exception in running :" + e;

I did not get any non-zero return code or error message.
It works when I run 'R CMD Rserve' at the command line.

My version of R is 2.2.1 and I am using Rserve v0.4-3.

Thanks in advance for any assistance!


Home page :

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 12 00:02:44 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 12 Jul 2006 - 00:20:39 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.