You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Jenkins中安装JDK jdk-9.0.1-oth-JPR失败问题求助

解决Jenkins安装JDK jdk-9.0.1-oth-JPR时的架构不匹配报错

我之前碰到过一模一样的问题,这个错误的核心原因是Jenkins的自动安装程序找不到适配WINDOWS+i386组合的JDK安装包。下面是亲测有效的解决步骤:

解决步骤

  • 登录Jenkins后台,进入【Jenkins管理 » 全局工具配置】页面
  • 找到你配置的jdk-9.0.1-oth-JPR对应的自动安装项,删除这个从Oracle站点下载的自动安装程序。之后你可以选择手动指定远程节点上已安装好的JDK路径,或者更换为适配Windows i386架构的JDK安装源。

构建环境信息

构建环境:在远程节点的工作区C:\Jenkins\workspace\中执行构建

完整错误日志

Installing JDK jdk-9.0.1-oth-JPR
FATAL: 无法生成脚本文件
hudson.AbortException: 找不到适用于WINDOWS和i386组合的正确安装包
	at hudson.tools.JDKInstaller.locate(JDKInstaller.java:443)
	at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:138)
	at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:72)
	at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
	at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
	at hudson.model.JDK.forNode(JDK.java:144)
	at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:358)
	at hudson.model.Run.getEnvironment(Run.java:2264)
	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:921)
	at com.lookout.jenkins.EnvironmentScript.generateEnvironment(EnvironmentScript.java:147)
	at com.lookout.jenkins.EnvironmentScript.setUp(EnvironmentScript.java:119)
	at hudson.model.Build$BuildExecution.doRun(Build.java:157)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
	at hudson.model.Run.execute(Run.java:1728)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:405)

内容的提问来源于stack exchange,提问作者Bob Jones

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 07:07:00