Fix bug when not installing java.