Hi,
I had some Java code that worked with SJava 0.65 under R 1.8.*. I'm
trying to get it to work with R 2.0.0. My JVM is Sun 1.5.0 (running on
Fedora Core 2)
I downloaded and installed SJava 0.65 in my personal directory using
R CMD INSTALL SJava-0.65.tar.gz -l ~/src/Rlibrary
and before starting R I sourced RJava.bsh. However after loading the
SJava library if do javaConfig() I get
---------------------------------------------
$classPath
[1] "/omegahat/Jars/Environment.jar" "/.."
[3] "/omegahat/Jars/antlr.jar"
"/omegahat/Jars/jas.jar"
[5] "/omegahat/Jars/jhall.jar"
$properties
EmbeddedInR
"true"
InterfaceManagerClass
"org/omegahat/Interfaces/NativeInterface/OmegaInterfaceManager"
ForeignReferenceBaseClass
"org/omegahat/R/Java/RForeignReference"
java.compiler
"NONE"
OMEGA_HOME
""
OmegahatSearchPath
".,${OMEGA_HOME}/Environment/Scripts/Run,${OMEGA_HOME}/Jars/Environment.jar"
java.library.path
""
$libraryPath
[1] ""
--------------------------------------------
and doing .JavaInit() gives me:
JVM (nil) Env (nil)
[1] error initializing manager class Cannot find the Omegahat interface
manager class. Check you classpath!
Error in .JavaInit() : Couldn't start Java Virtual Machine: Cannot find
the Omegahat interface manager class. Check you classpath!
>From the output fof javaConfig() I was'nt surprised. However I thought
that the install would set the paths to the OmegaHat interface manager.
So I set the classpath to
/home/rajarshi/src/Rlibrary/SJava/org/omegahat/Jars/../Interfaces: \
/home/rajarshi/src/Rlibrary/SJava/org/omegahat/Jars/../R/Java: \
/home/rajarshi/src/Rlibrary/SJava/org/omegahat/Jars/antlr.jar: \
/home/rajarshi/src/Rlibrary/SJava/org/omegahat/Jars/Environment.jar: \
/home/rajarshi/src/Rlibrary/SJava/org/omegahat/Jars/jas.jar: \
/home/rajarshi/src/Rlibrary/SJava/org/omegahat/Jars/jhall.jar: \
/home/rajarshi/src/Rlibrary/SJava/org/omegahat/Jars/ROmegahatExamples.jar:
and then starting up R and doing javaConfig() I get the same output as
before (except that the above paths are now in the CLASSPATH).
I also noted that the OMEGA_HOME variable is set to "". This did not
seem to be right so I tried setting it to
/home/rajarshi/src/Rlibrary/SJava/org/omegahat
from my shell but on starting up R and loading SJava and running
javaConfig() I see that OMEGA_HOME is still set to ""
Does anybody have any pointers as to whats going on?
(I also tried SJava 0.68, but thought it installs fine and .JavaInit()
works, when I try the example on the SJava download page, my R session
crashes)
-------------------------------------------------------------------
Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
I'm related to people I don't relate to."
-Calvin