Invalid Gradle JDK configuration found. There is no bin/javac in C:\Program Files\Java\jdk1.8.0_191
时间: 2023-12-05 22:04:16 浏览: 163
回答: 根据引用\[1\]的错误信息,提示JAVA_HOME变量设置为无效目录。请确保JAVA_HOME变量设置为正确的Java安装路径。另外,根据引用\[2\]的建议,您可以尝试修改jdk1.8.0_291/bin/java文件的权限,使用命令chmod 777 jdk1.8.0_291/bin/java修改权限。如果权限修改后仍然报错,您可以尝试修改jenkins文件中的用户,将JENKINS_USER从"jenkins"修改为"root",并且可以修改端口号JENKINS_PORT为您想要的端口号。保存并退出文件后,重启jenkins即可解决问题。
#### 引用[.reference_title]
- *1* [ERROR: JAVA_HOME is set to an invalid directory: /usr/local/jdk/openjdk1.8.0_312 Please](https://blog.csdn.net/cencen666/article/details/123494452)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [linux上启动jenkins报错:/home/... .../user/jdk/jdk1.8.0_291/bin/java 权限不够](https://blog.csdn.net/qq_43221829/article/details/117671996)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文