Dear R experts, Sorry, I am resending this, since I have not received this mail myself for the past 5 hours. I saw a similar question dated July 2. But there is no answer to it. Does anybody have a solution to it? I am using window NT, and the R version is 1.5.1, the SJava package is the binary version SJavaWin_0.62-8.zip. Here are the error message: > library(SJava) > .JavaInit() Error in .JavaInit() : Couldn't start Java Virtual Machine: Cannot find the Omegahat interface manager class. Check you classpath! > Javaconfig() Error: couldn't find function "Javaconfig" > JavaConfig() Error: couldn't find function "JavaConfig" > tmp <- javaConfig() > tmp$classPath [1] "E" [2] "\\Program Files\\R\\rw1051\\library\\SJava\\org\\omegahat\\Interfaces\\NativeInterface\\OmegaInterfaceManager.class;E" [3] "\\ora9ias\\ORAINST\\jdbc\\lib\\classes111.zip;E" [4] "\\ora9ias\\ORAINST\\lib\\servlet.jar;C" [5] "\\Program Files\\JavaSoft\\JRE\\1.1\\lib;C" [6] "\\Program Files\\JavaSoft\\JRE\\1.1\\lib\\activation.jar;C" [7] "\\WINNT\\system32\\Lasso Modules\\Java Modules" [8] "E:/PROGRA~1/R/rw1051/library/SJava/org/omegahat/Jars/Environment.jar" [9] "E:/PROGRA~1/R/rw1051/library/SJava/org/.." [10] "E:/PROGRA~1/R/rw1051/library/SJava/org/omegahat/Jars/antlr.jar" [11] "E:/PROGRA~1/R/rw1051/library/SJava/org/omegahat/Jars/jas.jar" [12] "E:/PROGRA~1/R/rw1051/library/SJava/org/omegahat/Jars/jhall.jar" > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 5.1 year 2002 month 06 day 17 language R > Thanks a lot for helping. Pauline -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> "pauline" == Pauline Gu <gu4 at llnl.gov> writes:pauline> Here are the error message: >> library(SJava) >> .JavaInit() pauline> Error in .JavaInit() : Couldn't start Java Virtual Machine: Cannot pauline> find the Omegahat interface manager class. Check you classpath! This is precisely the problem. The best solution at this point will be to make sure that the classpath (Or the windows' equivalent of LD_LIBRARY_PATH) is pointed at the right place. I.e. while I'm not good at debugging windows problems, it looks like a environmental variables problem. -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics U. of Washington Biostatistics rossini at u.washington.edu FHCRC/SCHARP/HIV Vaccine Trials Net rossini at scharp.org -------------- http://software.biostat.washington.edu/ ---------------- FHCRC: M: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email UW: Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX (my tuesday/wednesday/friday locations are completely unpredictable.) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thank you so much for replying, Dr. Rossini. But, here is my classpath: > tmp <- javaConfig() > tmp$classPath [1] "E" [2] "\\Program Files\\R\\rw1051\\library\\SJava\\org\\omegahat\\Interfaces\\NativeInterface\\OmegaInterfaceManager.class;E" [3] "\\ora9ias\\ORAINST\\jdbc\\lib\\classes111.zip;E" [4] "\\ora9ias\\ORAINST\\lib\\servlet.jar;C" [5] "\\Program Files\\JavaSoft\\JRE\\1.1\\lib;C" [6] "\\Program Files\\JavaSoft\\JRE\\1.1\\lib\\activation.jar;C" [7] "\\WINNT\\system32\\Lasso Modules\\Java Modules" [8] "E:/PROGRA~1/R/rw1051/library/SJava/org/omegahat/Jars/Environment.jar" [9] "E:/PROGRA~1/R/rw1051/library/SJava/org/.." [10] "E:/PROGRA~1/R/rw1051/library/SJava/org/omegahat/Jars/antlr.jar" [11] "E:/PROGRA~1/R/rw1051/library/SJava/org/omegahat/Jars/jas.jar" [12] "E:/PROGRA~1/R/rw1051/library/SJava/org/omegahat/Jars/jhall.jar" Actually, I did manually put the OmegaInterfaceManager.class into my classpath, as you can see from the bolded text above. Unless this is not the file the program is looking for, if not, which one. And the other question is that how come the format from the tmp$classPath for my environment classpath and the R classpath is different. My environment classpath takes two lines each (from [1] to [7]), while R classpath does not ([8] to [12]). Thanks again for your help. Pauline At 02:10 PM 8/9/2002 -0700, A.J. Rossini wrote:> >>>>> "pauline" == Pauline Gu <gu4 at llnl.gov> writes: > > > pauline> Here are the error message: > >> library(SJava) > >> .JavaInit() > pauline> Error in .JavaInit() : Couldn't start Java Virtual Machine: > Cannot > pauline> find the Omegahat interface manager class. Check you classpath! > >This is precisely the problem. The best solution at this point will >be to make sure that the classpath (Or the windows' equivalent of >LD_LIBRARY_PATH) is pointed at the right place. I.e. while I'm not >good at debugging windows problems, it looks like a environmental >variables problem. > >-- >A.J. Rossini Rsrch. Asst. Prof. of Biostatistics >U. of Washington Biostatistics rossini at u.washington.edu >FHCRC/SCHARP/HIV Vaccine Trials Net rossini at scharp.org >-------------- http://software.biostat.washington.edu/ ---------------- >FHCRC: M: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email >UW: Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX >(my tuesday/wednesday/friday locations are completely unpredictable.)-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._