i'm having trouble using rJava on ubuntu 11.10 amd 64-bit. when i try to source my code that uses rJava, i get the following error: Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/usr/lib/R/site-library/rJava/libs/rJava.so': libjvm.so: cannot open shared object file: No such file or directory Error: package/namespace load failed for 'rJava' the rJava.so does indeed exist in the above location. prior to sourcing the file, i ran the following: sudo R CMD javareconf JAVA_HOME=/usr/lib/jvm/default-java/jre/ Java interpreter : /usr/lib/jvm/default-java/jre//bin/java Java version : 1.7.0_11 Java home path : /usr/lib/jvm/default-java/jre/ Java compiler : /usr/lib/jvm/default-java/jre//../bin/javac Java headers gen.: /usr/lib/jvm/default-java/jre//../bin/javah Java archive tool: /usr/lib/jvm/default-java/jre//../bin/jar Java library path: :/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib JNI linker flags : -L -L/usr/java/packages/lib/amd64 -L/usr/lib64 -L/lib64 -L/lib -L/usr/lib -ljvm JNI cpp flags : -I$(JAVA_HOME)/../include -I$(JAVA_HOME)/../include/linux Updating Java configuration in /etc/R Done. i suspect there is a problem with locating the libjvm.so file. any help with tracking down the problem would be greatly appeciated. thank you.