removing headless-jre and added a gave set flag