Hello, I write a test for call R function from Java by Eclipse. When i run it, raise a error:
Loading RInterpreter library Exception in thread "main" java.lang.UnsatisfiedLinkError: no RInterpreter in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at org.omegahat.R.Java.ROmegahatInterpreter.<clinit>(ROmegahatInterpreter.java:34) at RTest.JavaR2.main(JavaR2.java:10) ok, i have set variable PATH => directory contain file .so (i use UBUNTU) correct..and i install R with option --enable-R-shlib. When i create script for call this class file, it run....result: Loading RInterpreter library R version 2.10.1 (2009-12-14) ----- In this script, I use command java - Djava.library.path=${SJAVA_PATH}:/usr/local/R/lib/R/library/SJava/libs -cp $CLASSPATH:${SJAVA_PATH}/rsjava.jar:${SJAVA_PATH}/antlr.jar:${SJAVA_PATH}/Environment.jar:${SJAVA_PATH}/jas.jar:${SJAVA_PATH}/jhall.jar $* i set variable PATH = $PATH:/usr/local/R/lib/R/library/SJava/libs:/usr/local/R/lib/R/library/SJava/org/omegahat/Jars? CLASSPATH=.... correctly. Why i have error when i use Eclipe to run it? (It not load RInterpreter library) Who can help me? Thanks -- View this message in context: http://n4.nabble.com/Cannot-load-RInterpreter-SJava-tp1017080p1017080.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.