title: Simple program to call R from Java using Eclipse and Rserve
body: <p>My application must perform R operations such as:</p>
  
  <pre><code>m = matrix(sample(0:1,100, rep=T),ncol=10)
  </code></pre>
  
  <p>The results should be available to a Java application.</p>
  
  <p>The <a href="http://www.rforge.net/Rserve/" rel="nofollow noreferrer">Rserve package</a> bridges R to other languages, since it acts as a TCP/IP server. I've read the website but don't know how to make the simplest application that can use Rserve.</p>
  
  <p>What steps are required to make a simple Eclipse application that uses Rserve to execute R commands from Java?</p>