title: Cannot compile a simple JNI program on Debian Wheezhy
body: <p>I have installed R on a Debian Wheezhy. I want to install rjava package, but I get this error:</p>
  
  <pre><code>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’
  </code></pre>
  
  <p>There is Java on my Linux, If I type <code>Java -Version</code> I see:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>How can I solve this problem?</p>