Minecraft wiki entry for Setting_up_a_server, associated text: If during installation, it asks for a password, enter your password. If you get asked "Is this OK [Y/N]" Enter Y and press enter if required. Java should now be installed.