Remove unneeded java configuration options
Add equivalent bash script