cw is a non-intrusive real-time ANSI color wrapper for common Unix-based commands. It is designed to simulate the environment of the commands being executed, so that if a person types 'du', 'df', 'ping', etc. in their shell it will automatically color the output in real-time according to a definition file containing the color format desired. It has support for wildcard match coloring, tokenized coloring, headers/footers, case scenario coloring, command-line- dependent definition coloring, and includes over 50 pre- made definition files.
System and Process Monitor in Java provides a JNI (Java Native Interface) implementation for monitoring global system resources and processes (outside JVM) via a unified (cross-platform) interface. The Java interface and all native libraries are compiled into a single JAR and are loaded transparently on any architecture upon request. It should be easy to embedd this code into your Java applications, either as a separate JAR or as one single application archive.