title: installing venneuler and/or rJava R package
body: <p>I'm trying to install the <code>venneuler</code> <code>R</code> package on linux.</p>
  
  <p>Running: <code>install.packages("venneuler")</code> gives this error:</p>
  
  <p></p>
  
  <pre><code>configure: error: One or more Java configuration variables are not set.
  Make sure R is configured with full Java support (including JDK). Run
  R CMD javareconf
  as root to add Java support to R.
  
  If you don't have root privileges, run
  R CMD javareconf -e
  to set all Java-related variables and then install rJava.
  
  ERROR: configuration failed for package ârJavaâ
  * removing â/home/nruns/R/rJavaâ
  Warning in install.packages :
    installation of package ârJavaâ had non-zero exit status
  ERROR: dependency ârJavaâ is not available for package âvenneulerâ
  * removing â/home/nruns/R/venneulerâ
  Warning in install.packages :
    installation of package âvenneulerâ had non-zero exit status
  
  The downloaded source packages are in
      â/tmp/RtmpjiRTHN/downloaded_packagesâ
  </code></pre>
  
  <p>Trying to install the <code>rJava</code> package produces the same error.</p>
  
  <p>So I then run <code>R CMD javareconf</code> as suggested and get this error:</p>
  
  <pre><code>trying to compile and link a JNI program 
  detected JNI cpp flags    : 
  detected JNI linker flags : -L$(JAVA_HOME)/lib/amd64/server -ljvm
  gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c conftest.c -o conftest.o
  conftest.c:1:17: fatal error: jni.h: No such file or directory
   #include &lt;jni.h&gt;
  </code></pre>
  
  <p>I updated java using:</p>
  
  <pre><code>sudo yum install java-1.8.0-openjdk
  </code></pre>
  
  <p>which completed fine but am still getting the same error trying to install <code>venneuler</code></p>
  
  <p>Any idea?</p>