add java example to run-all script