Move java installation to its own file.