How to install Open JDK in Windows operating system to be available for Jenkins orchestration tool |
Below are the Instructions for installing Open JDK in Windows operating system, to be available for Jenkins orchestration tool: Note:
1.- Download the zip file for JDK 17 from https://jdk.java.net/archive or https://learn.microsoft.com/en-us/java/openjdk/download
2.- Unzip the file into a separate directory to your C drive, i.e. C:\Users\userid\Downloads\openjdk-17.0.2_windows-x64_bin. 3.- In File Explorer, expand the directories to the bin directory of your unzipped JDK 17, i.e. C:\Users\userid\Downloads\openjdk-17.0.2_windows-x64_bin\jdk-17.0.2\bin. Copy the path. 4.- In your PC’s Window search bar, type ENV to go to your System Properties, click Environment Variables: 5.- In the User variables, select Path and click Edit: 6.- If your user variables Path has an old java, replace it with the new bin directory, i.e. C:\Users\userid\Downloads\openjdk-17.0.2_windows-x64_bin\jdk-17.0.2\bin. If there is no java directory in Path, then click New and paste it. Click OK: 7.- Back in the Environment variables dialog, go to the System variables: 8.- Look for Path, click Edit: 9.- If there is a reference to any java directory, delete it and click OK. You only need it as a user variable. The above screenshot shows that I don’t have java as I deleted it previously. 10.- Now to verify that you have it installed, open a new command prompt window and type: |