I tried to install RWeka but failed as rJava couldn’t be installed mainly because Java is installed in a non-conventional location. Below is quick summary of installing/loading these packages.

For installation, JAVA_HOME should be updated and the following has been done under the root account - it is found here

[root@localhost /]# su -

[root@localhost /]# export JAVA_HOME=/home/jaehyeon/jdk1.7.0_71
[root@localhost /]# export PATH=$PATH:$JAVA_HOME/bin

[root@localhost /]# export JAVA_HOME=/home/jaehyeon/jdk1.7.0_71/jre
[root@localhost /]# export PATH=$PATH:$JAVA_HOME/bin

[root@localhost /]# R CMD javareconf

The modified Java paths are shown below.

Java interpreter : /home/jaehyeon/jdk1.7.0_71/jre/bin/java
Java version     : 1.7.0_71
Java home path   : /home/jaehyeon/jdk1.7.0_71/jre
Java compiler    : /home/jaehyeon/jdk1.7.0_71/jre/../bin/javac
Java headers gen.: /home/jaehyeon/jdk1.7.0_71/jre/../bin/javah
Java archive tool: /home/jaehyeon/jdk1.7.0_71/jre/../bin/jar

However rJava couldn’t be loaded with the followign error.

> library(rJava)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/home/jaehyeon/R/x86_64-redhat-linux-gnu-library/3.1/rJava/libs/rJava.so':
  libjvm.so: cannot open shared object file: No such file or directory
Error: package or namespace load failed for rJava

After some googling, a remedy was found by creating the java.conf file - it is found here.

[root@localhost /]# cd /etc/ld.so.conf.d/
[root@localhost ld.so.conf.d]# vi java.conf

In the Vim editor, the followign two lines are added.

/home/jaehyeon/jdk1.7.0_71/jre/lib/amd64
/home/jaehyeon/jdk1.7.0_71/jre/lib/amd64/server

Finally the configuration has been executed by following.

[root@localhost ld.so.conf.d]# ldconfig

After that it was possible to install and load these packages.