[R] RJava

bdeepthi at ibab.ac.in bdeepthi at ibab.ac.in
Fri Oct 28 12:31:21 CEST 2011


Hello All,

I have successfully installed rJava. I have written a sample code in java
to check how it runs. the code successfully compiled.

to compile i used javac --classpath
/home/deepthi/R/x86_64-unknown-linux-gnu-library/2.13/rJava/jri/JRI.jar:/home/deepthi/R/x86_64-unknown-linux-gnu-library/2.13/JavaGD/java/javaGD.jar
JRItest.java

than to execute i used ./run JRItest

This gave me the following error:
Cannot find JRI native library!
Please make sure that the JRI native library is in a directory listed in
java.library.path.

java.lang.UnsatisfiedLinkError:
/home/deepthi/R/x86_64-unknown-linux-gnu-library/2.13/rJava/jri/libjri.so:
libblas.so.3gf: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
	at java.lang.Runtime.loadLibrary0(Runtime.java:823)
	at java.lang.System.loadLibrary(System.java:1028)
	at org.rosuda.JRI.Rengine.<clinit>(Rengine.java:19)
	at JRItest.main(JRItest.java:22)

Please help me to resolve this.


Thank you,


Deepthi BM
PGDB-10-10-04
Institute of Bioinformatics and Applied Biotechnology
Biotech Park, Electronic City, Phase I, Bengaluru-560100



More information about the R-help mailing list