Re: [R] can't load rJava in R 2.8.1 on Windows XP

2009-01-26 Thread Dieter Menne
Duncan Murdoch stats.uwo.ca> writes: > I don't know what's going wrong on your system. I added a browser() > call to the .onLoad function in R/windows/FirstLib.R on my system, and I > see it successfully gets JAVA_HOME from the registry. It gets a number > of other files, then adds these pat

Re: [R] can't load rJava in R 2.8.1 on Windows XP

2009-01-24 Thread Duncan Murdoch
On 24/01/2009 3:56 PM, Dieter Menne wrote: Duncan Murdoch stats.uwo.ca> writes: shell("set JAVA_HOME") JAVA_HOME=C:\Program Files\Java\jre6 That doesn't last beyond the shell call, as far as I know. It starts a process to run the shell, sets the environment variable in that process,

Re: [R] can't load rJava in R 2.8.1 on Windows XP

2009-01-24 Thread Dieter Menne
Duncan Murdoch stats.uwo.ca> writes: > >> shell("set JAVA_HOME") > >> > > JAVA_HOME=C:\Program Files\Java\jre6 > > > > That doesn't last beyond the shell call, as far as I know. It starts a > process to run the shell, sets the environment variable in that process, > then the process d

Re: [R] can't load rJava in R 2.8.1 on Windows XP

2009-01-23 Thread Duncan Murdoch
Dieter Menne wrote: Duncan Murdoch stats.uwo.ca> writes: Slightly different for me, but failure: jvm.dll is on path (checked successfully with "where jvm.dll") From within R? Remember that the PATH is process-specific. Maybe your shell added something that put jvm.dll on its pa

Re: [R] can't load rJava in R 2.8.1 on Windows XP

2009-01-23 Thread Dieter Menne
Duncan Murdoch stats.uwo.ca> writes: > > Slightly different for me, but failure: > > > > jvm.dll is on path (checked successfully with "where jvm.dll") > > From within R? Remember that the PATH is process-specific. Maybe your > shell added something that put jvm.dll on its path, but you di

Re: [R] can't load rJava in R 2.8.1 on Windows XP

2009-01-23 Thread Duncan Murdoch
On 1/23/2009 12:06 PM, Dieter Menne wrote: Duncan Murdoch stats.uwo.ca> writes: If you look at rJava:::.onLoad now that you can load the package, you'll see that it goes through a number of tests to try to find the right path. Slightly different for me, but failure: jvm.dll is on path

Re: [R] can't load rJava in R 2.8.1 on Windows XP

2009-01-23 Thread Dieter Menne
Duncan Murdoch stats.uwo.ca> writes: > > If you look at rJava:::.onLoad now that you can load the package, > you'll see that it goes through a number of tests to try to find the > right path. Slightly different for me, but failure: jvm.dll is on path (checked successfully with "where jvm.d

Re: [R] can't load rJava in R 2.8.1 on Windows XP

2009-01-23 Thread Duncan Murdoch
On 1/23/2009 9:44 AM, drflxms wrote: Dear Mr. Murdoch, Dear Mr. Ripley, Dear Mr. Wang, thank you very much for your quick and efficient help! It is exactly as Duncan explained it: Including jvm.dll in PATH solved the problem immediately. Everything works fine now. The only thing is, that I do n

Re: [R] can't load rJava in R 2.8.1 on Windows XP

2009-01-23 Thread drflxms
Dear Mr. Murdoch, Dear Mr. Ripley, Dear Mr. Wang, thank you very much for your quick and efficient help! It is exactly as Duncan explained it: Including jvm.dll in PATH solved the problem immediately. Everything works fine now. The only thing is, that I do not understand why I had to do this manu

Re: [R] can't load rJava in R 2.8.1 on Windows XP

2009-01-23 Thread Duncan Murdoch
On 1/23/2009 7:38 AM, drflxms wrote: Dear community, unfortunately I did not manage load the rJava package receiving the following error-message: library("rJava") Error in inDL(x, as.logical(local), as.logical(now), ...) : kann shared library 'C:/Programme/R/2.8.1/library/rJava/libs/rJava.dl

Re: [R] can't load rJava in R 2.8.1 on Windows XP

2009-01-23 Thread Prof Brian Ripley
Most likely Java is not in place, including in the DLL search path. On Fri, 23 Jan 2009, drflxms wrote: Dear community, unfortunately I did not manage load the rJava package receiving the following error-message: library("rJava") Error in inDL(x, as.logical(local), as.logical(now), ...) :

[R] can't load rJava in R 2.8.1 on Windows XP

2009-01-23 Thread drflxms
Dear community, unfortunately I did not manage load the rJava package receiving the following error-message: > library("rJava") Error in inDL(x, as.logical(local), as.logical(now), ...) : kann shared library 'C:/Programme/R/2.8.1/library/rJava/libs/rJava.dll' nicht laden: LoadLibrary failure: