Java headless support and installation from bin