I'm running Rstudio on its own server. Java is installed with good java_home and bin. R is installed. rJava is installed.
Tried to do command: library("rJava")
but had issues with libjvm.so
, do following Rstudio recommandation I did sudo R CMD javareconf
with root.
Here is the output of my javareconf:
Java interpreter : /home/scoremd/jdk1.7.0_03/jre/bin/java
Java version : 1.7.0_03
Java home path : /home/scoremd/jdk1.7.0_03
Java compiler : /home/scoremd/jdk1.7.0_03/bin/javac
Java headers gen.: /home/scoremd/jdk1.7.0_03/bin/javah
Java archive tool: /home/scoremd/jdk1.7.0_03/bin/jar
NOTE: Your JVM has a bogus java.library.path system property!
Trying a heuristic via sun.boot.library.path to find jvm library...
Java library path: $(JAVA_HOME)/jre/lib/amd64:$(JAVA_HOME)/jre/lib/amd64/server
JNI linker flags : -L$(JAVA_HOME)/jre/lib/amd64 -L$(JAVA_HOME)/jre/lib/amd64/server -ljvm
JNI cpp flags : -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
Seems there is issue with finding the java library path... but my java is working fine and R also.
I didn't receive any solution from RStudio support and community (told me to ask in SO ....).
javareconf
output above is just fine (it is just telling you that it was working around bugs in your Java) - it found all the paths as you can see. Did you re-install rJava from sources after runningjavareconf
? Also note that for this to work whatever you're running (Rstudio?) must be started with theR
script (i.e. if your line doesn't start withR ...
it's unlikely to work). If you still have issues, provide details (what exactly are you running and what errors you get). BTW: support for rJava is on the stats-rosuda-devel mailing list.