The simplest way to install Jenkins on Windows is to use the Jenkins Windows installer. That program will install Jenkins as a service using a 64 bit JVM chosen by the user. Keep in mind that to run Jenkins as a service, the account that runs Jenkins must have permission to login as a service. 1. Download. Download the JDK from Oracle (e.g. JDK 8 8u111 ). 2. Extract. If you want to use the x86 version simply open the .exe file with 7-Zip. It contains a single file tools.zip, which contains all the files we need. Extract the tools.zip to the desired JDK directory (e.g. “D:\JavaJDK\”). 3. 1 Insert your portable USB drive into your home computer's USB slot. 2 On your home computer, navigate to the "Download Java JDK" link in the resources section. 3 Click the red "Download" button. When asked to log-in, click "Skip this step." Click "Save file" to download the file to your computer. Click the Download link, click Save or OK to start the download, and wait a few seconds for the download to finish. Double-click the downloaded file (which ends in .jar) to run the OptiFine installer. Save this script file as SJV.ps1 and add this file location in your machine's Path environment variable. So now SJV will act as command to "Switch Java Version". Now open new powershell window and just type SJV 11 it will switch to Java 11. Type SJV 8 OR SJV it will switch to Java 8. After installing and adding it to Path environment variable all that need to do are: Add all Java versions that you need to jEnv config, like: jenv add c:\Program Files\Java\jdk1.7.0_80. Configure which JVM to use (globally, by directory or for the current shell instance): jenv global jdk1.7.0_80. Share. Set the JAVA_HOME Variable. Windows 7 – Right click My Computer and select Properties > Advanced. Windows 8 – Go to Control Panel > System > Advanced System Settings. Windows 10 – Search for Environment Variables then select Edit the system environment variables. Click the Environment Variables button. Installed Java 11 using: sudo apt-get install openjdk-11-jdk Netbeans still fails. Pop-up says requires Java 11. Set default java to openjdk11 using: sudo update-alternatives --config java Netbeans still fails. Pop-up says requires Java 11. I checked the jdkhome line in netbeans.conf, and found 3 instances of this file: .

how do i install java 11 on windows