Issue
-
JDK Installer for java.sun.com displays a text field instead of a dropdown list
-
Cannot use JDK Installer
Resolution
This can be fixed inside a running instance of CJE.
Delete the failing JDK installers
-
Got to
Manage Jenkins/Configure System
-
Remove the JDK installer image::common-kb::jdkinstaller-conf-dropdown.png[image-1.png]
Force Jenkins to update the JDK Installer data file:
-
Go to
Manage Jenkins/Script Console
-
Copy/Paste and Run this groovy script that will update the data file for tools and installers:
hudson.model.DownloadService.signatureCheck = false hudson.model.DownloadService.Downloadable.get("hudson.tools.JDKInstaller").updateNow() hudson.model.DownloadService.signatureCheck = true return
-
The script might take few seconds to finish. A label
Result
appears below the Text Area indicating that the script has run. image::common-kb::jdkinstaller-conf-no-dropdown.png[image-2.png]This line should appears in the log as well:
... INFO: Obtained the updated data file for hudson.tools.JDKInstaller ...
-
Go to
Manage Jenkins/Configure System
-
Add a JDK Installation and select the java.sun.com JDK Installer. There should be a dropdown list. image::common-kb::jdkinstaller-script-result.png[image-3.png]