Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   Jython and JRuby help (http://www.programmingforums.org/showthread.php?t=15607)

null_ptr0 Apr 13th, 2008 12:55 PM

Jython and JRuby help
 
How would i go about redirecting output?
In java, i do System.setOut(new ConsolePrintStream(....)) and same for System.err, and for System.in i do System.setIn(new ConsoleInputStream(...)).
Now, but in JRuby and Jython, when I do 'print "hi"' and 'puts 'hi'' respectedly, it prints to the command-line console, and not to my JTextArea 'console' as BeanShell does.


All times are GMT -5. The time now is 4:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC