Could not find tools.jar. Please check that /usr/lib/jvm/java-8-openjdk-amd64 contains a valid JDK
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
在Linux环境下使用Jenkins自动打包部署的时候报“Could not find tools.jar. Please check that /usr/lib/jvm/java-8-openjdk-amd64 contains a valid JDK installation.”的错误。问题其实很简单。
翻译一下就知道:“找不到tools.jar。 请检查/ usr / lib / jvm / java-8-openjdk-amd64是否包含有效的JDK安装”
很显然就是jdk的问题哦。
因为在我的一台Linux机一直只用来做运行环境来使用,所以当时装了jre,也就是只有运行环境,没有编辑工具。
找到问题了,那就安装jdk吧。
使用命令
sudo apt-get install openjdk-8-jdk
安装即可。




A beautiful web dashboard for Linux
最近提交(Master分支:27 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)