Do not run Java as a subprocess in bash script