> if I want to run a java application from the same java application:
> meaning parent process spawns a child process, but passes different
> parameters (to avoid infinite spawning); does the child inherits
> parent's classpath and other configurations
> or do I need to pass the classpath along?
If you've specified the classpath via the "-classpath" command line
option, then you'll need to repeat that on the child process. If you've
specified it with the CLASSPATH environment variable, that will be
inherited by the child process by default.
It's important to note that there's no special case in Process for
invoking another JVM. You have to do it just like you would any other
process, and it follows the same rules.
> Also, child process does a lot of printing, should create another
> thread to monitor and read its output or what?
By printing, I assume you mean writing to the console (as opposed to
using a printer, for example). Yes, you will need to read from the
resulting streams eventually, so the child process doesn't block
indefinitely.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation