Little optimization if no java installed