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
By the way,my $JAVA_HOME points to a oracle-jdk-7
Most likely, your root user doesn’t have a JAVA_HOME set. Do you absolutely need to
sudoit?If you do, you could use a small bash script to do it:
Save the file and give it a name like
myinstallor something like that, perform achmod +x myinstallandsudo ./myinstallEDIT
@Mat pointed out a good point. I changed my approach. Thanks!