[R] Accessing R from Java

From: fuad <fuad_at_stikom.edu>
Date: Wed 11 Oct 2006 - 01:58:29 GMT


Hello All,  

I am Fuad from Indonesia. I am doing a research using R. I need to access R from Java.

Here are my computer specifications :

  1. Windows XP
  2. Java 1.4.0
  3. R 2.2.1
  4. rJava_0.4.3.zip ; I download the binary from CRAN
  5. Rserve_0.4 ; I download the exe from Rosuda
  6. JRI_0.3.5.tar.gz from Rosuda too

I have successfully install and try a little code in R.

I have install packages rJava from RGUI and it was successful.

But when I try to load packages using library(rJava) I have error : unable to load shared library rJava.dll. There is no Jvm.dll.

So I copied jvm.dll from JAVA_HOME\bin to R_HOME\bin, and it seems done well until I try to wake up Java Virtual Machine using .jinit() I received error : cannot create JVM.  

Is there anyway I can call R inside Java code ?

Please help me. Thank you  

Best regards,  


        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Oct 11 12:06:56 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 11 Oct 2006 - 02:30:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.