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 |