Cannot compile a simple JNI program on Debian Wheezhy
I had a similar problem while installing xlsx package that has some dependenciesmaybe related to java and r java packages...
In order to solve your problem you have to:- check environment variables $JAVA_HOME and $PATH- sudo R CMD javareconf
If it doesn't help, try out my configuration with java-7-oracle,
- install java-7-oracle via webupd8 repository Installing Java 7 (Oracle) in Debian via apt-get
- set environment variables $JAVA_HOME and $PATH
- export JAVA_HOME=/usr/lib/jvm/java-7-oracle
- export PATH=$PATH:$JAVA_HOME/bin
- sudo update-java-alternatives -s java-7-oracle
- sudo R CMD javareconf
and than retry the installation of rjava
I hope it will help you!