To install java on windows 10, visit the official java website and download the jre or jdk installer. Run the installer and follow the on-screen instructions to complete the installation.