[OTDev] Fwd: SW Development process...SL update

surajit ray mr.surajit.ray at gmail.com
Tue Dec 22 15:35:18 CET 2009


I am using JRI with the situation that the Java code (for prediction ) is a
desktop aplication which is being initiated by the ./run script in rJava
(within the JRI subfolder). This means that the R engine is being started by
the script and then the java code is initiated.

This is ok in working for the desktop application. But since we are going to
develop an online service - I have to reprogram the code in JSP etc. However
this means I cannot use the JRI run script (since the code has to be
initiated by tomcat).

So I would like to start the engine from within the Java Code (JSP). I have
tried this - but this is not recommended by the author of JRI. My attempts
have failed till now. I can forward the exact code and the details of the
errors.

Cheers
Surajit

On Tue, Dec 22, 2009 at 2:12 PM, Rajarshi Guha <rajarshi.guha at gmail.com>wrote:

>
> On Dec 22, 2009, at 4:32 AM, Egon Willighagen wrote:
>
>
> >>> 5) Unable to make the R part of the code native to java as yet.
> >>> Still
> >>> trying a few things. This hinders our ability to provide the API
> >>> interface.
> >>>
> >> I am aware of at least one Java - R integration, namely The CDK
> >> library
> >> (*http://cdk*.*sourceforge*.*net*/)  has R integration since few
> >> years -
> >> it might help if you consult the code there. And AFAIK the author of
> >> CDK-R code is on this list as well, so please do ask specific
> >> questions
> >> on the development mailing list.
> >
> > Not sure if Rajarshi is on the list yet, but he indeed wrote various
> > levels of integration, calling R from a Java environment is one.
> >
> > Have a look at http://www.omegahat.org/RSJava/, which has a section on
> > 'Calling R from Java'.
>
> I'm here :)
>
> Indeed, RSJava is one way to make calls to R from Java. However, the
> preferred solution is to us JRI (which is what the CDK-R bridge uses)
> which has a much more robust interface
>
> ----------------------------------------------------
> Rajarshi Guha        | NIH Chemical Genomics Center
> http://www.rguha.net | http://ncgc.nih.gov
> ----------------------------------------------------
> A committee is a group that keeps the minutes and loses hours.
>        -- Milton Berle
>
>
> _______________________________________________
> Development mailing list
> Development at opentox.org
> http://www.opentox.org/mailman/listinfo/development
>



-- 
Surajit Ray



More information about the Development mailing list