Forker is a Java library that provides you with better control over external processes and provides a replacement for ProcessBuilder. There are essentially 3 major components to the library:
ForkerClient to replace ProcessBuilder simply build a process and let Forker deal with checking the exit code and redirecting or capturing standard output. Commands can be run as the current user or as administrator.
Forker Daemon can be used to reduce forking costs on Linux, by starting a separate small JVM whose job it is to just execute commands on behalf of another runtime.
Forker Wrapper is a "wrapper" to execute services in Java. Similar to JSW (Java Service Wrapper) and YAJSW but more lightweight and using a liberal license, Forker Wrapper can be used to launch processes in the background, track the process ID, capture output to log and automatically restart a hung or crashed JVM and more.
Features
- Replacement for ProcessBuilder
- Run Java commands as Administrator
- Reduce Linux process forking costs
- Service wrapper