[R] RJava: Error obtaining System.out
Oliver Ruebenacker
curoli at gmail.com
Thu Jun 7 22:39:52 CEST 2012
Hello,
Any idea why trying to obtain System.out in rJava does not work?
> library(rJava)
> .jinit()
> s <- .jnew("java/lang/String", "Hello World!")
> .jcall(s,"I","length")
[1] 12
> systemOut <- .jfield("java/lang/System", "Ljava/io/PrintStream", "out")
Error in .jfield("java/lang/System", "Ljava/io/PrintStream", "out") :
RgetField: field out not found
Thanks!
Take care
Oliver
--
Oliver Ruebenacker
Bioinformatics Consultant (http://www.knowomics.com/wiki/Oliver_Ruebenacker)
Knowomics, The Bioinformatics Network (http://www.knowomics.com)
SBPAX: Turning Bio Knowledge into Math Models (http://www.sbpax.org)
More information about the R-help
mailing list