[R] Does SJava work on Windows? It does (ish) on Linux

Peter Cameron peter.cameron at enscitech.com
Mon Oct 21 14:03:57 CEST 2002


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list