Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7842617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:21:50+00:00 2026-06-02T16:21:50+00:00

My application must perform R operations such as: m = matrix(sample(0:1,100, rep=T),ncol=10) The results

  • 0

My application must perform R operations such as:

m = matrix(sample(0:1,100, rep=T),ncol=10)

The results should be available to a Java application.

The Rserve package 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.

What steps are required to make a simple Eclipse application that uses Rserve to execute R commands from Java?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:21:51+00:00Added an answer on June 2, 2026 at 4:21 pm

    There is a binary version of Rserve in the download section (www.rforge.net/Rserve/files/ I have version R 2.13 and Windows xp, so I need download Windows binary: Rserve_0.6-8.zip (541.3kb, updated: Wed Apr 18 07:00:45 2012)). Copy the file to the directory containing R.DLL. After installed Rserve from CRAN

    install.packages("Rserve")
    

    in R (I have RStudio – convenient thing: Download RStudio IDE).
    started Rserve is from within R, just type

    library(Rserve)
    Rserve()
    

    Сheck in Task Manager – Rserve.exe should be run.
    After make a Java project in Eclipse, make a directory called lib under that project. Paste
    2 jar here RserveEngine.jar and REngine.jar (www.rforge.net/Rserve/files/). Do not forget to add this jars in Properties your java-project. In new class code:

    import org.rosuda.REngine.*;
    import org.rosuda.REngine.Rserve.*;
    
    public class rserveuseClass {
        public static void main(String[] args) throws RserveException {
            try {
                RConnection c = new RConnection();// make a new local connection on default port (6311)
                double d[] = c.eval("rnorm(10)").asDoubles();
                org.rosuda.REngine.REXP x0 = c.eval("R.version.string");
                System.out.println(x0.asString());
    } catch (REngineException e) {
                //manipulation
            }       
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i wanna create a java application that must perform some essential action (closing of
I'm building a C# application which uses plug-ins. The application must guarantee to the
t-sql, sql server 2008 My application must check connection status to database every 5
I have C# application that must store some information into MS SQL that would
I have an application which must save client instances of com.smartgwt.client.widgets.Canvas to a disk
I am working on a web application which must be able to encrypt data
I have a 32-bit application that must run on a Windows x64 server using
I want to create a WinForm application that must draw data coming from a
I am developing a WPF application that must run using Windows Classic theme. The
I am developing a WPF application that must meet Section 508 (Accessibility) requirements. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.