Link to home
Start Free TrialLog in
Avatar of Breadstick
Breadstick

asked on

Change System.out to append in a JTextArea

I do a lot of java programming while I'm at school, on my laptop.  However, my laptop is old, slow, and has very little room left on the hard drive.  I've tried using several IDE's on it, but they all either run too slow, take up too much disk space, or are complicated and hard to learn how to use.

I'm trying to develop a very simple IDE for personal use, and am stuck in the conceptual stages because I'm not sure how to implement my design.  I'll be using com.sun.tools.javac.Main to compile, and I'm assuming that I'll just use Runtime.exec() to run the programs.  The problem is that I don't know how to redirect standard output from a process like that.
ASKER CERTIFIED SOLUTION
Avatar of Webstorm
Webstorm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Webstorm
Webstorm

information about com.sun.tools.javac.Main : http://www.javaworld.com/javatips/jw-javatip131.html
Avatar of Mick Barry
The following example writes a process's output to a JTextArea, it may be helpful to you:

http://www.objects.com.au/java/examples/util/SwingExec.do
Avatar of Breadstick

ASKER

Thanks to both of you, but Webstorm was faster and a little more helpful in this case.