I tried to install a plugin for eclipse,but get an error,after some googling,got a suggestion to run:sudo R CMD javareconf,but got this error:
*** Cannot find any Java interpreter
*** Please make sure 'java' is on your PATH or set JAVA_HOME correspondingly
当报这个错误的时候,请使用下面的解决办法,亲测有效
solution:
|
Most likely, your root user doesn't have a JAVA_HOME set. Do you absolutely need to
If you do, you could use a small bash script to do it:
Save the file and give it a name like |
本文介绍了解决在尝试为Eclipse安装插件时遇到的错误“Cannot find any Java interpreter”的方法。该错误通常是因为root用户的JAVA_HOME环境变量未设置导致的。文章提供了一个实用的bash脚本解决方案,通过该脚本可以临时为root用户设置JAVA_HOME并运行所需的命令。
1062

被折叠的 条评论
为什么被折叠?



