Helper script to treat Java programs as scripts.