Thanks to some excellent help on another question, I am happily building
Java applications on my Windows 7 machine. However, I am hoping to use the statistical package R and would like to call it from Java.
I have installed R, I have installed a package for R called JRI. It comes with some java
test files and they don't run. I think my problem might be knowing how to import packages other than those that come with the JRE.
I just set path to get Java to run.
in my path let's me run javac x.java and java x just fine.
I also have R in my path
and it runs just fine using the Rterm command.
JRI is installed as part of rJava in the R directory tree. I see these files, which seem to be what I want,
jri.dll
JRI.jar
JRIEngine.jar
REngine.jar
so I added
to the path. This is where these files were installed.
Then I try to run their test program-
I get errors compiling it. There are 30 of them and mostly they are "can't find symbol." But the ones that I think actually matter are-
"package org.rosuda.JRI does not exist."
So... I think there is just something simple I don't understand about Java. Could someone set me straight?
Of course, I'd love to know what the best package is for running R from Java, JRI is the only one I found. Or if there are any Java/R experts that would like to point me to a good tutorial, that would also be great!