posted 22 years ago
The simplest way is to use the system() function. Which spawns a shell and has your program waiting for it return. The argument to system() is a complete string as you'd supply from the shell.
If you want to get fancy with exec/execlp/exec* you can actually replace your program space with the new java process, saving you on the total number of processes.
Normal is in the eye of the beholder