Skip to content
Prev 58249 / 63424 Next

status of Java & rJava?

????? I spoke too soon in saying that everything worked with OpenJDK:? 
"R CMD check Ecfun_0.2-4.tar.gz" using 
"https://github.com/sbgraves237/Ecfun" worked fine on my Mac but failed 
with "error: DLL 'rJava' not found: maybe not installed for this 
architecture?" under Windows 10.? "00install.out" and 
"Sys.getenv('PATH')" follow.? "library(rJava)" seemed to work, and 
"help(pac='rJava') displays 0.9-12.? Suggestions?? Thanks, Spencer Graves


* installing *source* package 'Ecfun' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'Ecfun':
 ?.onLoad failed in loadNamespace() for 'rJava', details:
 ? call: library.dynam("rJava", pkgname, libname)
 ? error: DLL 'rJava' not found: maybe not installed for this architecture?
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/spenc/Documents/R/Ecfun/Ecfun.Rcheck/Ecfun'

######################

 > Sys.getenv('PATH')
[1] "C:\\Program Files\\R\\R-3.6.3\\bin\\x64;C:\\Program 
Files\\AdoptOpenJDK\\jdk-11.0.6.10-hotspot\\bin;C:\\Program 
Files\\Java\\jre1.8.0_241;C:\\Rtools\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program 
Files\\Microsoft VS Code\\bin;C:\\Program Files\\Git\\cmd;C:\\Program 
Files\\TortoiseSVN\\bin;c:\\programFiles\\ffmpeg\\ffmpeg-4.1\\;C:\\Program 
Files\\Pandoc\\;C:\\Program Files\\MiKTeX 
2.9\\miktex\\bin\\x64\\;C:\\Users\\spenc\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\spenc\\AppData\\Local\\GitHubDesktop\\bin;C:\\FFmpeg\\bin;C:\\RBuildTools\\3.5\\bin;C:\\Program 
Files\\R\\R-3.6.3\\bin;C:\\Users\\spenc\\AppData\\Local\\Microsoft\\WindowsApps;C:\\RBuildTools\\3.5\\;"
On 2020-03-28 23:07, Prof Brian Ripley wrote:
Thanks.? That worked on Catalina.? When installing OpenJDK on Windows 
10, The default for "Set JAVA_HOME" was 'X';? I changed that to 
install.? It didn't work at first, but did after I rebooted.


Thanks again to both Simon Urbanek and Prof. Ripley.? Spencer Graves