RWeka installation on mac
<p>I am trying to install RWeka package on mac.</p>

<p>OS version: </p>

<blockquote>
  <p>10.9.5  </p>
</blockquote>

<p>Java version installed:  </p>

<blockquote>
  <p>java version "1.7.0_75"<br>
  Java(TM) SE Runtime Environment (build 1.7.0_75-b13)<br>
  Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)  </p>
</blockquote>

<p>After executing </p>

<blockquote>
  <p>install.packages("RWeka")  </p>
</blockquote>

<p>when I try to execute </p>

<blockquote>
  <p>library(RWeka)  </p>
</blockquote>

<p>the following error is displayed  </p>

<blockquote>
  <p>Error : .onLoad failed in loadNamespace() for 'RWekajars', details:<br>
    call: .jinit()<br>
    error: JNI_GetCreatedJavaVMs returned -1  </p>
  
  <p>Error: package or namespace load failed for ‘RWeka’<br>
  JavaVM: requested Java version ((null)) not available. Using Java at "" instead.<br>
  JavaVM: Failed to load JVM: /bundle/Libraries/libserver.dylib<br>
  JavaVM FATAL: Failed to load the jvm library. </p>
</blockquote>

<p>The output of command  </p>

<blockquote>
  <p>R CMD javareconf  </p>
</blockquote>

<p>is  </p>

<blockquote>
  <p>xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.<br>
  xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.<br>
  xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.<br>
  xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.<br>
  xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.<br>
  Java interpreter : /usr/bin/java<br>
  Java version     : 1.7.0_75<br>
  Java home path   : /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre<br>
  Java compiler    : /usr/bin/javac<br>
  Java headers gen.: /usr/bin/javah<br>
  Java archive tool: /usr/bin/jar<br>
  Non-system Java on OS X  </p>
  
  <p>trying to compile and link a JNI program<br>
  detected JNI cpp flags    : -I$(JAVA_HOME)/../include -I$(JAVA_HOME)/../include/darwin<br>
  detected JNI linker flags : -L/Users/amlanroy/Library/Java/Extensions -L/Library/Java/Extensions -L/Network/Library/Java/Extensions -L/System/Library/Java/Extensions -L/usr/lib/java -L. -ljvm<br>
  xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.<br>
  Unable to compile a JNI program  </p>
  
  <p>JAVA_HOME        : /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre<br>
  Java library path:<br>
  JNI cpp flags    :<br>
  JNI linker flags :<br>
  Updating Java configuration in /Library/Frameworks/R.framework/Resources<br>
  Done.  </p>
</blockquote>

<p>Please let me know if anybody has faced the same issue and knows the solution.</p>