got non-interactive java working