peut-être

http://www.omegahat.org/RSJava/FAQ.html:

Problem:
Trying the example for calling R from Java via

   SJava/scripts/RJava --example --gui-none

(in <RHOME>/library) throws an exception

Solution:
Reinstall SJava using the -c switch, i.e.

  R CMD INSTALL -c SJava_0.62-6.tar.gz

Regards,

Martin

miniar mansouri <[EMAIL PROTECTED]> writes:

> Bonjour,
>  
> Je developpe  une application java et je veux integrer du code R dans mon 
> programme . Le programme de test que j’ai fait est :
>  
>  
> import org.omegahat.R.Java.*;
>  
>  public class REvalSample {
>     public static void main(String [] args) {
>         String [] rargs = {"--slave", "--vanilla"};
>  
>         System.out.println("Sample program to call R engine from Java");
> ROmegahatInterpreter interp = new 
> ROmegahatInterpreter(ROmegahatInterpreter.fixArgs(rargs),false);
>  
>         REvaluator e = new REvaluator();
>  
>      Object val = e.eval("demo()");
>         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]);}
>  
>  
>             }
>     }
>  }
>  
>  
> Lorsque je compile ce programme j’obtient les messages d’erreurs suivants :
>  
>  
> Loading RInterpreter library
> java.lang.UnsatisfiedLinkError: no RInterpreter in java.library.path
>             at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
>             at java.lang.Runtime.loadLibrary0(Runtime.java:788)
>             at java.lang.System.loadLibrary(System.java:834)
>             at 
> org.omegahat.R.Java.ROmegahatInterpreter.<clinit>(ROmegahatInterpreter.java:34)
>             at rjava.REvalSample.main(REvalSample.java:11)
> Exception in thread "main".
> A mentionner , je travaille avec JBuilderX, et R.2.3.0 ,j’ai ajouter les 
> packages SJava et rjava à R mais le problème est toujours présent.
>  
> Aider moi s’il vous plait c’est très urgent .
>  
>  
>  
>  
>  
>       [[alternative HTML version deleted]]
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to