Search code examples
javaeclipsereclipse-pluginstatet

R not installing correctly in Eclipse ... Java issues?


I'm trying to run R in the Eclipse environment.

I have followed all the necessary instructions from A Guide to Eclipse and the R Plugin in StatET [http://www.splusbook.com/RIntro/R_Eclipse_StatET.pdf] however am coming up with the following Error;

Launching the R Console was cancelled, because it seems starting the R engine failed. Please make sure that R package 'rj' (2.0 or compatible) is installed and that the R library paths are set correctly for the R environment configuration 'R'.

Debug

I have installed RJ 1.1 as directed on one site, then installed 2.0. I dragged the contents of the zip into the library.

This is the image of the Environmental settings;

enter image description here

The interaction ...

enter image description here

The Java ...

enter image description here

And the installation of RJ 1.1 in the library;

C:\Program Files\R\R-3.1.2\library\rj

I have also followed this route of installation, RJava Eclipse Plugin as it seemed that Java was incorrectly installed, following the Error Details.

I'm stuck. I can't seem to figure out what is going on. Does anyone have any ideas?

Thanks, WEJ


Solution

  • I've managed to resolve the issue however am unsure exactly how, one of the options below was effective so I'd recommend trying them all to anyone with a similar problem.

    1. Check the install location of rj.gd. If you for some reason, like I did, have two locations, check that the required files are in the location Eclipse is automatically selecting. If there not, put them there, however as Roman points out make sure these are correctly installed.
    2. Re-start your PC after installation, not just the program.

    It was one of those, so good luck.