Peter Cameron
2002-Oct-21 12:03 UTC
[R] Does SJava work on Windows? It does (ish) on Linux
Apologies for posting to this list but my attempts to join the omegahelp list bounce back with address unknown errors. I'm struggling to get SJava working on windows 98. I'm using R 1.6 and the latest SJava 0.65 and JDK 1.3.1_04. I keep getting an Unsatisified Link error on initR. Our Java application gets launched with a wrapper script. I've put the library paths and current directory in PATH, specified them on the java command line using -Djava.library.path= (this is necessary otherwise the DLLs cannot be located in the first instance, despite them being in PATH). I've specified the full pathnames of the DLLs in the System.loadLibrary java calls, but to no avail. Why isn't the initR being resolved? Do I have to compile R ( I assume the 1.6 R.dll is OK for SJava 0.65?). On my Linux system I compiled R 1.3 from source as a shared library, and then successfully installed the SJava 0.65. With both Java 1.3.1 and Java 1.4.1 I get hotspot exception 11 whenever I try to invoke the Revaluator methods call and eval. If I trace the JNI calls I get an error about scalar data being passed to a function that is expecting an array (or perhaps it's vice versa). What does work is voidEval which is sufficient for our purposes, although SJava seems flaky in the stability department. Any help on getting SJava working on Windows is appreciated. Cheers, Peter -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi Peter,>Apologies for posting to this list but my attempts to join theomegahelp>list bounce back with address unknown errors.It's a typo in the omega web page. The correct mail address is omega-help at omegahat.org (not omega-help at www.omegahat.org)>I'm struggling to get SJava working on windows 98. I'm using R 1.6 andthe>latest SJava 0.65 and JDK 1.3.1_04. I keep getting an Unsatisified Link>error on initR.>Our Java application gets launched with a wrapper script. I've put the >library paths and current directory in PATH, specified them on the java>command line using -Djava.library.path= (this is necessary otherwisethe>DLLs cannot be located in the first instance, despite them being inPATH).>I've specified the full pathnames of the DLLs in the System.loadLibraryjava>calls, but to no avail. Why isn't the initR being resolved?I had similar problems, see my summary: http://www.omegahat.org/pipermail/omega-help/2002-October/000232.html>Do I have to compile R ( I assume the 1.6 R.dll is OK for SJava 0.65?).I have done my tests with R1.5.1. There is a problem with SJava and R, that has to be fixed in R, see http://r-bugs.biostat.ku.dk/cgi-bin/R/incoming?id=2003;user=guest . . .>Any help on getting SJava working on Windows is appreciated.If you want to give it a try, I can send you the modified SJava sources/DLL. Heinz -------------- next part -------------- A non-text attachment was scrubbed... Name: grimm.heinz.vcf Type: text/x-vcard Size: 291 bytes Desc: Card for Heinz Grimm Url : https://stat.ethz.ch/pipermail/r-help/attachments/20021022/95a399fe/grimm.heinz.vcf