When I tried to run r console in eclipse,got this error:

--------------------------------------------------------------------------------------------------
    ....Please make sure that R package 'rj' (1.1 or compatible) is
installed...

So I tried to intall it in R console like this:

--------------------------------------------------------------------------------------------------
    install.packages(c("rj", "rj.gd"),
repos="http://download.walware.de/rj-1.1";)

got this error:

--------------------------------------------------------------------------------------------------
     ** testing if installed package can be loaded
     Error : .onLoad failed in loadNamespace() for 'rj.gd', details:
     call: dyn.load(file, DLLpath = DLLpath, ...)
     error: unable to load shared object
'/home/alex/R/x86_64-pc-linux-gnu-library/2.15/rj.gd/libs/rj.gd.so':
     libjvm.so: cannot open shared object file: No such file or
directory
     Error: loading failed
     Execution halted
     ERROR: loading failed


and I found when installing rjava like this: install.packages("rJava")
will get similar error:

--------------------------------------------------------------------------------------------------
    ** testing if installed package can be loaded
    Error : .onLoad failed in loadNamespace() for 'rJava', details:
    call: dyn.load(file, DLLpath = DLLpath, ...)
    error: unable to load shared object
'/home/alex/R/x86_64-pc-linux-gnu-library/2.15/rJava/libs/rJava.so':
    libjvm.so: cannot open shared object file: No such file or directory
    Error: loading failed
    Execution halted
    ERROR: loading failed

When I run  sudo R CMD javareconf,I got this outputs 
--------------------------------------------------------------------------------------------------
    Java interpreter : /usr/bin/java
    Java version     : 1.7.0
    Java home path   : /usr/lib/jvm/java-7-oracle/jre
    Java compiler    : /usr/bin/javac
    Java headers gen.: /usr/bin/javah
    Java archive tool: /usr/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)/lib/amd64:
$(JAVA_HOME)/lib/amd64/server
    JNI linker flags : -L$(JAVA_HOME)/lib/amd64 -L
$(JAVA_HOME)/lib/amd64/server -ljvm
    JNI cpp flags    : -I$(JAVA_HOME)/../include -I
$(JAVA_HOME)/../include/linux

    Updating Java configuration in /etc/R
    Done.


by the way,my configuration is:
--------------------------------------------------------------------------------------------------
    ubntu 11.10 64bit    eclipse 3.7    oracle-1.7-jdk    R version
2.15.1 


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to