Add an option to install java, or not

We needs it not conflict with other javas.