[Rd] rJava System.out / System.err & stacktraces

From: kapelner <kapelner_at_gmail.com>
Date: Fri, 06 Jan 2012 12:23:57 -0800 (PST)


Is there any way to initialize rJava so it can print System.out and System.err to console? Also, is there any way to see stack traces? Otherwise we're limited to just seeing:

> .jcall(machine, "V", "Build")
> .jcheck()

Error: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

which doesn't tell me much about the problem nor where the problem occurred in the Java code.

If there's no way to do this, I'm just going to have to send every System.out/err statement in my code to a log file which is a very ugly way of doing debugging.


View this message in context: http://r.789695.n4.nabble.com/rJava-System-out-System-err-stacktraces-tp4270712p4270712.html
Sent from the R devel mailing list archive at Nabble.com.

R-devel_at_r-project.org mailing list
Received on Fri 06 Jan 2012 - 20:40:27 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 06 Jan 2012 - 21:50:07 GMT.

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

list of date sections of archive