I have installed R on a Debian Wheezhy. I want to install rjava package, but I get this error:
configure: error: Cannot compile a simple JNI program. See config.log for details.
Make sure you have Java Development Kit installed and correctly registered in R.
If in doubt, re-run "R CMD javareconf" as root.
ERROR: configuration failed for package ‘rJava’
* removing ‘/home/babak/R/x86_64-pc-linux-gnu-library/2.15/rJava’
There is Java on my Linux, If I type Java -Version
I see:
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b24-1.11.5-1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
How can I solve this problem?
I have solved the problem using this command - shown in error description:
sudo R CMD javareconf
I had a similar problem while installing xlsx package that has some dependencies maybe 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,
and than retry the installation of rjava
I hope it will help you!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With