pass headless=true for some javas