I am trying to configure JRI with Eclipse on a Windows 7 x64 system. I tried it once on my Laptop and it worked. Now this fails on my desktop, although all the settings for R, rJava and JRI are exactly the same.
I installed JRI and R Paths correctly: C:\Program Files\R\R-2.15.1\library\rJava\jri;C:\Program Files\R\R-2.15.1\bin\x64
Also I set R_DOC_DIR etc. in eclipse.
Every time I try to start new Rengine(...); It fails without any errors or exceptions. Debugging revealed: <terminated, exit value: 10>C:\Program Files\Java\jre6\bin\javaw.exe (01.10.2012 18:00:31)
Is there anything I can try? I am really worried that it works on my laptop, but not on my workstation, despite the same settings everywhere.
Edit: The code used to get the Rengine object.
public static Rengine getRengine(){ if (re == null) createRengine(); return re; } public static void createRengine(){ if (re!=null) return; try{ if (!Rengine.versionCheck()) { System.err.println("** Version mismatch **"); System.exit(1); } String[] arguments = {"--save"}; re=new Rengine(arguments, false, null); if (!re.waitForR()) { System.out.println("Cannot load R"); return; } } catch (Exception e){ e.printStackTrace(); } }
Edit: the last time I tried, I had an error (creating REngine worked, it never happened), R was not in the registry. After installing R 2.15.1, it worked again. Now, after a reboot, it is the same as before. The program crashes when creating REngine.
cokir source share