When not printing to a file, AVM.interpret() will print to System.out. One may need to print to something else (Socket, ByteArrayOutputStream, etc.).
Add an option in the AwkSettings class to set the output stream.
The same probably needs to be done for compilation.