Sorry for this off-topic subject. I am fighting for running SJava under Windows. SJava_0.64 (compiled by Simon Urbanek, thanks), R 1.6.2, Java JDK 1.4.0_02, Windows XP pro:> library(SJava) > .JavaInit()Error in .JavaInit() : Couldn't start Java Virtual Machine: Cannot find the Omegahat interface manager class. Check you classpath!> # And the second time... > .JavaInit()It gives the error: The instruction at "0x10bc9f0d" referenced memory at "0x10d60008". The memory could not be "read", and ejects me. I have:> .javaConfig$classPath [1] "C:/PROGRA~1/R/rw1062/library/SJava/org/omegahat/Jars/Environment.jar" [2] "C:/PROGRA~1/R/rw1062/library/SJava/org/.." [3] "C:/PROGRA~1/R/rw1062/library/SJava/org/omegahat/Jars/antlr.jar" [4] "C:/PROGRA~1/R/rw1062/library/SJava/org/omegahat/Jars/jas.jar" [5] "C:/PROGRA~1/R/rw1062/library/SJava/org/omegahat/Jars/jhall.jar" $properties EmbeddedInR "true" InterfaceManagerClass "org/omegahat/Interfaces/NativeInterface/OmegaInterfaceManager" ForeignReferenceBaseClass "org/omegahat/R/Java/RForeignReference" java.compiler "NONE" OMEGA_HOME "C:/PROGRA~1/R/rw1062/library/SJava/org/omegahat" OmegahatSearchPath ".,${OMEGA_HOME}/Environment/Scripts/Run,${OMEGA_HOME}/Jars/Environment.jar" java.library.path "C:/PROGRA~1/R/rw1062/library/SJava/libs" $libraryPath [1] "C:/PROGRA~1/R/rw1062/library/SJava/libs" Any idea? Best regards, Philippe Grosjean ...........]<(({?<...............<?}))><............................... ) ) ) ) ) ( ( ( ( ( Dr. Philippe Grosjean ) ) ) ) ) ( ( ( ( ( LOV, UMR 7093 ) ) ) ) ) Station Zoologique ( ( ( ( ( Observatoire Oc?anologique ) ) ) ) ) BP 28 ( ( ( ( ( 06234 Villefranche sur mer cedex ) ) ) ) ) France ( ( ( ( ( ) ) ) ) ) tel: +33.4.93.76.38.16, fax: +33.4.93.76.38.34 ( ( ( ( ( ) ) ) ) ) e-mail: phgrosjean at sciviews.org ( ( ( ( ( SciViews project coordinator (http://www.sciviews.org) ) ) ) ) ) .......................................................................
Philippe, I didn't use JDK 1.4 (and R1.6.2) yet, but may be I can help you anyway: - Did you add the directory that holds the jvm.dll to your PATH? - If you take a look to the source of .JavaInit() ($R_HOME/ library/SJava/R/SJava), there is a line: pathSeparator <- ifelse(version$os == "Win32", ";", ":") this should be: pathSeparator <- ifelse(version$os == "mingw32", ";", ":") All versions of R that I know of, return "mingw32" for version$os. Best regards, Heinz Grimm -------------- next part -------------- A non-text attachment was scrubbed... Name: grimm.heinz.vcf Type: text/x-vcard Size: 292 bytes Desc: Card for Heinz Grimm Url : https://stat.ethz.ch/pipermail/r-help/attachments/20030204/c094ecb6/grimm.heinz.vcf -------------- next part -------------- This e-mail transmission contains confidential or legally privileged information that is intended for the addressee(s) only. You are hereby notified that any disclosure, copying, distribution or use of the contents of this e-mail is strictly prohibited if you are not the intended recipient. Please inform the sender and delete the message from your system if you have received this e-mail transmission in error. Thank you.
For those who are interested, I posted a Windows compiled version of SJava 0.64 that works with R 1.6.2 and JDK 1.4 on ftp.sciviews.org, under /Download/Rwindows/. Thanks Simon, Heinz and Brian for helping me getting this running version. When compiling SJava 0.64 under Windows (R 1.6.2, JDK 1.4.0-02, Win XP), line 286 of $R_HOME/library/SJava/R/SJava has to be changed from: pathSeparator <- ifelse(version$os == "Win32", ";", ":") to pathSeparator <- ifelse(.Platform$OS.type == "windows", ";", ":") in order to work in R 1.6.2. Of course, the path to jvm.dll must also be added to the "path" environment variable. With my installation, it is: c:\progra~1\Java\j2re1.4.0_02\bin\Client Best regards, Philippe Grosjean ...........]<(({?<...............<?}))><............................... ) ) ) ) ) ( ( ( ( ( Dr. Philippe Grosjean ) ) ) ) ) ( ( ( ( ( LOV, UMR 7093 ) ) ) ) ) Station Zoologique ( ( ( ( ( Observatoire Oceanologique ) ) ) ) ) BP 28 ( ( ( ( ( 06234 Villefranche sur mer cedex ) ) ) ) ) France ( ( ( ( ( ) ) ) ) ) tel: +33.4.93.76.38.16, fax: +33.4.93.76.38.34 ( ( ( ( ( ) ) ) ) ) e-mail: phgrosjean at sciviews.org ( ( ( ( ( SciViews project coordinator (http://www.sciviews.org) ) ) ) ) ) .......................................................................