Java – Jenkins – configure JDK – text box only, and automatic installation fails
I'm trying to create a Jenkins - based build server for our Android application
The build failed because it cannot automatically install the JDK (on the machine, there is openjdk 24.91-b01 a-la 1.7.0_91)
java.io.IOException: JDK data is empty. at hudson.tools.JDKInstaller.locate(JDKInstaller.java:418) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:134) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206) at hudson.model.JDK.forNode(JDK.java:143) at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:358) at hudson.model.Run.getEnvironment(Run.java:2232) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:941) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1036) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE
On the manage Jenkins screen, I didn't get the JDK (and other automatic installer selection boxes: ant, maven, gradle,...)
So:
>Why don't I have a selection box? What values should I invest in? How to solve? > I'm worried that manually installing JDK will install it globally, resulting in conflicting JDK versions of Jenkins (see this about CentOS installation) Do I need to think about it?
Solution
I found that the only source for recording JDK ID is Jenkins source code jdkimstaller java:
But it seems that this page does not exist I fixed the problem by installing a different JDK to run Jenkins JDK 8u66 doesn't work, but JDK 8u60 is like a charm After installing the old JDK, I had to update the available updates from the plug-in site After that, I got the classic drop-down box, from which I can choose the Java version