Hi I'm trying to use SJava and I have troubles. I try to run examples from "Calling R from Java" but,I have an error that "fatal error: enable to open the base package" I heard SJAVA bug, so,could you send me your compiled SJava package with the modified REmbed.c because in Windows i'm not able to recompile!!! --example package org.omegahat.R.Java; public class REvalSample { public static void main(String[] args) { String[] rargs = { "--slave", "--vanilla" }; System.out.println("Java??R???????????"); ROmegahatInterpreter interp new ROmegahatInterpreter( ROmegahatInterpreter.fixArgs(rargs), false); REvaluator e = new REvaluator(); Object val = e.eval("x <- sin(seq(0, 2*pi, length=30))"); val = e.eval("x * 2.0"); if (val != null) { double[] objects = (double[]) val; for (int i = 0; i < objects.length; i++) { System.err.println("(" + i + ") " + objects[i]); } } } } --------- Thank you ------------ Junko Yano E-mail : junko_yano_ at hotmail.com
Hi, I have the same error than you two weeks ago. As I have not found how to do, I give up my example. Yunko, I am interesting if you found how to proceed. Thanks Vincent A 01:07 09/06/2004 +0900, =?iso-2022-jp?B?GyRCTHBMbhsoQiAbJEI9ZztSGyhC?= a ??crit :>Hi > >I'm trying to use SJava and I have troubles. I try to run examples from >"Calling R from Java" >but,I have an error that "fatal error: enable to open the base package" > >I heard SJAVA bug, >so,could you send me your compiled SJava package with the modified >REmbed.c because in Windows i'm not able to recompile!!! > >--example >package org.omegahat.R.Java; > >public class REvalSample { > public static void main(String[] args) { > String[] rargs = { "--slave", "--vanilla" }; > > >System.out.println("Java$B$+$i(BR$B$r%3!<%k$9$k%W%m%0%i%`(B"); > > ROmegahatInterpreter interp > new ROmegahatInterpreter( > ROmegahatInterpreter.fixArgs(rargs), > false); > REvaluator e = new REvaluator(); > > Object val = e.eval("x <- sin(seq(0, 2*pi, length=30))"); > val = e.eval("x * 2.0"); > > if (val != null) { > double[] objects = (double[]) val; > for (int i = 0; i < objects.length; i++) { > System.err.println("(" + i + ") " + > objects[i]); > } > } > } >} >--------- > >Thank you >------------ >Junko Yano >E-mail : junko_yano_ at hotmail.com > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Hi! For Windows and mac os X use of rJava may help. http://stats.math.uni-augsburg.de/iPlots/>From there also as it seems a working older version of SJave can be downloaded.Sincerely Eryk *********** REPLY SEPARATOR *********** On 6/9/2004 at 9:12 AM Vincent MUTEAUD wrote:>>>Hi, >>>I have the same error than you two weeks ago. As I have not found how to >>>do, I give up my example. >>>Yunko, I am interesting if you found how to proceed. >>>Thanks >>> >>>Vincent >>> >>> >>> >>> >>>A 01:07 09/06/2004 +0900, =?iso-2022-jp?B?GyRCTHBMbhsoQiAbJEI9ZztSGyhC?>>>a >>>??crit : >>>>Hi >>>> >>>>I'm trying to use SJava and I have troubles. I try to run examples from >>>>"Calling R from Java" >>>>but,I have an error that "fatal error: enable to open the base package" >>>> >>>>I heard SJAVA bug, >>>>so,could you send me your compiled SJava package with the modified >>>>REmbed.c because in Windows i'm not able to recompile!!! >>>> >>>>--example >>>>package org.omegahat.R.Java; >>>> >>>>public class REvalSample { >>>> public static void main(String[] args) { >>>> String[] rargs = { "--slave", "--vanilla" }; >>>> >>>> >>>>System.out.println("Java$B$+$i(BR$B$r%3!<%k$9$k%W%m%0%i%`(B"); >>>> >>>> ROmegahatInterpreter interp >>>> new ROmegahatInterpreter( >>>> ROmegahatInterpreter.fixArgs(rargs), >>>> false); >>>> REvaluator e = new REvaluator(); >>>> >>>> Object val = e.eval("x <- sin(seq(0, 2*pi, >>>length=30))"); >>>> val = e.eval("x * 2.0"); >>>> >>>> if (val != null) { >>>> double[] objects = (double[]) val; >>>> for (int i = 0; i < objects.length; i++) { >>>> System.err.println("(" + i + ") " + >>>> objects[i]); >>>> } >>>> } >>>> } >>>>} >>>>--------- >>>> >>>>Thank you >>>>------------ >>>>Junko Yano >>>>E-mail : junko_yano_ at hotmail.com >>>> >>>>______________________________________________ >>>>R-help at stat.math.ethz.ch mailing list >>>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help >>>>PLEASE do read the posting guide! >>>http://www.R-project.org/posting-guide.html >>> >>>______________________________________________ >>>R-help at stat.math.ethz.ch mailing list >>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help >>>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.htmlDipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin 'v' tel: 0049-30-83875219 / \ mail: wolski at molgen.mpg.de ---W-W---- http://www.molgen.mpg.de/~wolski
I am using windows xp, R 1.9.0 and SJava 0.65 modified. perhaps I set correctly. could you send me your compiled SJava package with the modified REmbed.c because in Windows i'm not able to recompile!!! could you provide me your solution. --- CLASSPATH C:\Program Files\R\rw1090\library\SJava; C:\Program Files\R\rw1090\library\SJava\org\omegahat\Jars\antlr.jar; C:\Program Files\R\rw1090\library\SJava\org\omegahat\Jars\Environment.jar; C:\Program Files\R\rw1090\library\SJava\org\omegahat\Jars\jas.jar; C:\Program Files\R\rw1090\library\SJava\org\omegahat\Jars\jhall.jar; C:\Program Files\R\rw1090\library\SJava\org\omegahat\Jars\ROmegahatExamples.jar JAVA_HOME C:\j2sdk1.4.1_03 path C:\j2sdk1.4.1_03\jre\bin\client; C:\Program Files\R\rw1090\library\SJava\libs; C:\Program Files\R\rw1090\bin R_HOME C:\Program Files\R\rw1090 SJAVA C:\Program Files\R\rw1090\library\SJava thank you ------------ Junko Yano E-mail : junko_yano_ at hotmail.com>From: Vincent MUTEAUD <muteau at ensam.inra.fr> >To: Prof Brian Ripley <ripley at stats.ox.ac.uk> >CC: ?? ?? <junko_yano_ at hotmail.com>, <r-help at stat.math.ethz.ch> >Subject: Re: [R] SJAVA error >Date: Wed, 09 Jun 2004 10:48:15 +0200 > >Thanks >I am using windows NT, R 1.9.0 and SJava 0.65 modified. I think my >R_HOME is set correctly > >A 08:26 09/06/2004 +0100, Prof Brian Ripley a ?rit : >>SJava is not part of R but rather of Omegahat, so this is the wrong >>list. >>But as a hint, I think you have not set R_HOME, or not set it >>correctly. >> >>But please consult the R posting guide for hints as to what >>information >>might be needed to help either of you, as neither or you have >>provided >>basic information like the OS, version of R, version of SJava .... >> >>On Wed, 9 Jun 2004, Vincent MUTEAUD wrote: >> >> > Hi, >> > I have the same error than you two weeks ago. As I have not >>found how to >> > do, I give up my example. >> > Yunko, I am interesting if you found how to proceed. >> > Thanks >> > >> > Vincent >> > >> > A 01:07 09/06/2004 +0900, >>=?iso-2022-jp?B?GyRCTHBMbhsoQiAbJEI9ZztSGyhC?= a >> > ?rit : >> > >Hi >> > > >> > >I'm trying to use SJava and I have troubles. I try to run >>examples from >> > >"Calling R from Java" >> > >but,I have an error that "fatal error: enable to open the base >>package" >> > > >> > >I heard SJAVA bug, >> > >so,could you send me your compiled SJava package with the >>modified >> > >REmbed.c because in Windows i'm not able to recompile!!! >> >>EVERYONE should be able to compile under Windows as all the tools >>required >>are free. >> >> > >--example >> > >package org.omegahat.R.Java; >> > > >> > >public class REvalSample { >> > > public static void main(String[] args) { >> > > String[] rargs = { "--slave", "--vanilla" }; >> > > >> > > >> > >System.out.println("Java$B$+$i(BR$B$r%3!<%k$9$k%W%m%0%i%`(B"); >> > > >> > > ROmegahatInterpreter interp >> > > new ROmegahatInterpreter( >> > > >>ROmegahatInterpreter.fixArgs(rargs), >> > > false); >> > > REvaluator e = new REvaluator(); >> > > >> > > Object val = e.eval("x <- sin(seq(0, 2*pi, >>length=30))"); >> > > val = e.eval("x * 2.0"); >> > > >> > > if (val != null) { >> > > double[] objects = (double[]) val; >> > > for (int i = 0; i < objects.length; >>i++) { >> > > System.err.println("(" + i + >>") " + >> > > objects[i]); >> > > } >> > > } >> > > } >> > >} >> >>-- >>Brian D. Ripley, ripley at stats.ox.ac.uk >>Professor of Applied Statistics, >>http://www.stats.ox.ac.uk/~ripley/ >>University of Oxford, Tel: +44 1865 272861 (self) >>1 South Parks Road, +44 1865 272866 (PA) >>Oxford OX1 3TG, UK Fax: +44 1865 272595 >