title: Unable to install rJava in R 3.0 in Ubuntu 13.04
body: <p>I am not able to call <code>rJava</code> package in <code>R 3.0</code>. I got the following message</p>
  
  <pre><code>Error: package ‘rJava’ was built before R 3.0.0: please re-install it
  </code></pre>
  
  <p>I am getting error when I tried to re-install <code>rJava</code> package. I have provided the output of <code>R CMD javareconf</code></p>
  
  <pre><code>Java interpreter : /usr/bin/java
  Java version     : 1.7.0_21
  Java home path   : /usr/lib/jvm/java-7-openjdk-i386/jre
  Java compiler    : /usr/lib/jvm/java-7-openjdk-i386/jre/../bin/javac
  Java headers gen.: /usr/lib/jvm/java-7-openjdk-i386/jre/../bin/javah
  Java archive tool: /usr/lib/jvm/java-7-openjdk-i386/jre/../bin/jar
  
  trying to compile and link a JNI progam 
  detected JNI cpp flags    : 
  detected JNI linker flags : 
  gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O2 -pipe -g  -c conftest.c -o conftest.o
  conftest.c:1:17: fatal error: jni.h: No such file or directory
  compilation terminated.
  make: *** [conftest.o] Error 1
  Unable to compile a JNI program
  
  
  Java library path: 
  JNI cpp flags    : 
  JNI linker flags : 
  Updating Java configuration in /usr/lib/R
  Done.
  </code></pre>
  
  <p>I am using Ubuntu 13.04. I also tried <code>apt-get install r-cran-rjava</code> which is not helping to solve the issue. Regarding jni.h there were some solution <a href="https://stackoverflow.com/questions/14529720/how-to-make-jni-h-be-found">here.</a> But, not sure how can I use the solution here. </p>