Original Post
I am writing a very simple IDE for Java and I would want to be able to catch uncaught exceptions and report them (because Jave just prints the stack trace to console in such situations). The best thing of course would be catching exceptions in another Jave process (or Virtual Machine???), but if it''s impossible, catching exceptions from same thread would be fine.
I have found the public void uncaughtException(Thread t, Throwable e) method in ThreadGroup class, but I have no idea what to do with it. Which leads to another question - is there a way to launch Java program from another Java program, other than calling Runtime.exec(), which doesn''t differentiate between Java and native processes?