rjava

rJava is not picking up the correct Java version

情到浓时终转凉″ 提交于 2019-11-27 21:21:50
问题 I've been struggling with this problem for a while now. When I install rJava from R, it takes Java 1.6 instead of 1.8. I am using MAC OS 10.8.5 and these are the steps that I've already done. I've installed R. I have both Java 1.6 and 1.8 on my machine. I've reconfigures R from terminal using: sudo R CMD javareconf -n . Here is what the output looks like: Java interpreter : /usr/bin/java Java version : 1.8.0_25 Java home path : /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home

rJava linker error licuuc with Anaconda & fopenmp error without Anaconda for macOS Sierra 10.12.4

拟墨画扇 提交于 2019-11-27 15:23:28
I want to install rJava on macOS Sierra 10.12.4. My current Java version is Java version: 1.8.0_131 , according to R CMD javareconf|grep version . I have installed Java with Homebrew's cask. My Java runs the following $ java -version java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode) My R version is R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-apple-darwin11.4.2 (64-bit) R Java config runs such that $ R CMD

Can't install rJava on ubuntu system

十年热恋 提交于 2019-11-27 14:27:29
问题 I've seen a few posts related to this...but all the suggested solutions ive seen dont seem to work....I am running R in an EC2 instance and ran the following commands to try and install rJava but to no avail...any help would be greatly appreciated. > install.packages("rJava") Installing package(s) into ‘/home/ubuntu/R/library’ (as ‘lib’ is unspecified) trying URL 'http://cran.stat.nus.edu.sg/src/contrib/rJava_0.9-3.tar.gz' Content type 'application/x-gzip' length 537153 bytes (524 Kb) opened

How does one configure rJava on OSX to select the right JVM — .jinit() failing

不羁岁月 提交于 2019-11-27 13:18:45
问题 I installed rJava by calling install.packages("rJava") -- no problems seen However when I call: library(rJava) .jinit() I get: JavaVM: requested Java version ((null)) not available. Using Java at "" instead. JavaVM: Failed to load JVM: /bundle/Libraries/libserver.dylib JavaVM FATAL: Failed to load the jvm library. Error in .jinit() : JNI_GetCreatedJavaVMs returned -1 I'm running OSX: Darwin MBP-2 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE

Unable to install rJava in R 3.0 in Ubuntu 13.04

核能气质少年 提交于 2019-11-27 11:32:33
I am not able to call rJava package in R 3.0 . I got the following message Error: package ‘rJava’ was built before R 3.0.0: please re-install it I am getting error when I tried to re-install rJava package. I have provided the output of R CMD javareconf Java interpreter : /usr/bin/java Java version : 1.7.0_21 Java home path : /usr/lib/jvm/java-7-openjdk-i386/jre Java compiler : /usr/lib/jvm/java-7-openjdk-i386/jre/../bin/javac Java headers gen.: /usr/lib/jvm/java-7-openjdk-i386/jre/../bin/javah Java archive tool: /usr/lib/jvm/java-7-openjdk-i386/jre/../bin/jar trying to compile and link a JNI

how to get rJava 0.9-3 to work on OS X 10.7.4 with Oracle Java 1.7?

依然范特西╮ 提交于 2019-11-27 09:07:43
Is there anyone out there who has managed to get rJava 0.9-3 to work on OS X 10.7.4 with Oracle Java 1.7? R version 2.15.2 (2012-10-26) -- "Trick or Treat" Platform x86_64-apple-darwin9.8.0/x86_64 (64-bit) java version "1.7.0_09" Java(TM) SE Runtime Environment (build 1.7.0_09-b05) Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode) I've installed rJava using both the install.packages function and the command line install with R 2.15.2. I don't get any errors. $ R CMD INSTALL rJava * installing to library ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library’ * installing

R - Error : .onLoad failed in loadNamespace() for 'rJava'

风流意气都作罢 提交于 2019-11-27 07:48:25
While loading rJava package, I receive this error: Error : .onLoad failed in loadNamespace() for 'rJava', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Users/ankitagarwal5/Documents/R/win-library/3.2/rJava/libs/x64/rJava.dll': LoadLibrary failure: %1 is not a valid Win32 application. In addition: Warning message: package ‘rJava’ was built under R version 3.2.3 Error: package or namespace load failed for ‘rJava’ I referred various posts on StackOverflow and tried to make changes accordingly, but nothing worked. These are the various

Cannot install library(xlsx) in R and look for an alternative

ⅰ亾dé卋堺 提交于 2019-11-27 07:11:00
问题 I use R version 3.0.3. I was not able to install library(xlsx). Error message: Loading required package: rJava Error : .onLoad failed in loadNamespace() for 'rJava', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Program Files/R/R-3.0.3/library/rJava/libs/x64/rJava.dll': LoadLibrary failure: The specified module could not be found. I then tried to install rjava on its own. Got the error message below: library("rJava", lib.loc="C:

How can I make rJava use the newer version of java on osx?

£可爱£侵袭症+ 提交于 2019-11-27 05:07:08
I am following this tutorial on rJava: http://cran.r-project.org/web/packages/helloJavaWorld/vignettes/helloJavaWorld.pdf I have made all the files as specified in the tutorial and installed the helloJavaWorld package, but once I run the helloJavaWorld() function, it complains: > helloJavaWorld() Error in .jnew("HelloJavaWorld") : java.lang.UnsupportedClassVersionError: HelloJavaWorld : Unsupported major.minor version 52.0 So I tried to check the java version that rJava is using: .jinit() jvm = .jnew("java.lang.System") jvm.props = jvm$getProperties()$toString() jvm.props <- strsplit(gsub("\\{

Error while loading rJava

て烟熏妆下的殇ゞ 提交于 2019-11-27 04:32:50
问题 I get an error when I'd like to load rJava. JDK is installed. (I run R on a CentOS VM (cloudera demo vm cdh3u4)) > library(rJava) Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/home/cloudera/R/x86_64-redhat-linux-gnu-library/2.15/rJava/libs/rJava.so': libjvm.so: cannot open shared object file: No such file or directory Error: package/namespace load failed for ‘rJava’ Is there something wrong