rjava

rJava error when running with Eclipse

坚强是说给别人听的谎言 提交于 2019-12-10 16:35:14
问题 I have installed R 3.0.1 and Eclipse Kepler. (I have installed StatE to run R-script through and Eclipse R-console with no problem.) However, I cannot seem to get a java program to run. I'm posting my issues to see if anyone else has encountered them or can help me understand what I'm doing wrong. After installing R, rJava (through R), and eclipse, I ran the RJavaEclipse Plugin from studytrials.com. Then I configured the paths to the appropriate libraries or .dll. When I try to run the rtest

Problem loading R own created libraries in Java/JRI code

醉酒当歌 提交于 2019-12-10 10:52:51
问题 I created my own new R library (called "Media"). There is no problem when I try to load it with RGui, and I can call the functions defined in the new package. This is how I load it: > library(Media) But, I'm also trying to call that functions from Java/JRI code, and when I load the new R package, Java doesn't seem to find the pacakge, throwing the message "Error in library(Media) : object 'Media' not found" This is my current code using JRI: REXP rexpSetFolder = re.eval("setwd('C:/Users

Calling R script function from Java using rJava

≡放荡痞女 提交于 2019-12-10 00:06:20
问题 My Requirement - I need to deploy a Java webservice in a server which internally executes a R scipt file. I googled about various solutions for calling R from Java and the best were rJava and Rserve. Using Rserve I can call R function BUT as I am running this in Windows it can not handle multiple requests at a time and I dont want to switch to Linux. [Edit] What I tried - I have used rJava to call a R function : String[] args = new String[3]; args[0] = "--quiet"; // Don't print startup

rJava does not run on macOS Sierra

僤鯓⒐⒋嵵緔 提交于 2019-12-08 11:35:21
问题 I am using macOS Sierra and R version 3.4.0. I installed the package "rJava" using RStudio: install.packages("rJava") Warning in install.packages : cannot open URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found' trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.4/rJava_0.9-8.tgz' Content type 'application/x-gzip' length 627959 bytes (613 KB) ================================================== downloaded 613 KB The

rJava loading error- “character vector expected”

冷暖自知 提交于 2019-12-08 05:33:35
问题 I am using 64 bit windows 7 & 64 bit R 3.2.0. I have downloaded rJava package, but it is giving an error as follows. Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dirname(this$RuntimeLib) error: a character vector argument expected In addition: Warning message: package ‘rJava’ was built under R version 3.2.2 Error: package or namespace load failed for ‘rJava’ I searched stackoverflow for answers, and did the following: 1) Added the jvm.dll file to my PATH variable, i.e

Can't load package xlsx after upgrading to Sierra

吃可爱长大的小学妹 提交于 2019-12-08 04:19:45
问题 I recently updated to Sierra and it seems like I can't load packages that depends on rJava anymore. For example: library(xlsx) Gives: Loading required package: rJava Loading required package: xlsxjars 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 : .onLoad failed in loadNamespace() for 'xlsx', details: call: .jinit() error: JNI_GetCreatedJavaVMs

rJava installation fails on macOS 10.14

回眸只為那壹抹淺笑 提交于 2019-12-08 02:38:00
问题 After upgrading to MacOS Mojave (10.14.1), I'm no longer able to install rJava for R version 3.5.1 with Java version "1.8.0_102" installed. I tried the previous solution for MacOS 10.11 but it still did not work, giving this error: Error: package or namespace load failed for ‘rJava’: .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs

R package rJava only loads if I launch R with sudo

前提是你 提交于 2019-12-07 08:00:50
问题 I'm running R 3.0.2 on Ubuntu 14.04.1. I've installed the rJava package, but I can only get it to work in R/RStudio if I launch it with sudo. If I click on the application launcher, or just enter R in the command line, I get the following error when loading the rJava library: > library(rJava) Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/usr/lib/R/site-library/rJava/libs/rJava.so': libjvm.so:

Can't load package xlsx after upgrading to Sierra

雨燕双飞 提交于 2019-12-06 15:57:08
I recently updated to Sierra and it seems like I can't load packages that depends on rJava anymore. For example: library(xlsx) Gives: Loading required package: rJava Loading required package: xlsxjars 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 : .onLoad failed in loadNamespace() for 'xlsx', details: call: .jinit() error: JNI_GetCreatedJavaVMs returned -1 Error: package or namespace load failed for ‘xlsx’ Here is my sessions info: R version 3.3

Installing and loading “rJava”

你说的曾经没有我的故事 提交于 2019-12-06 08:25:38
问题 I am encountering problems loading the "Deducer" package due a loading problem with "rJava". The installation of "rJava" seems to be done correctly, yet it fails when calling it to load. Please, can anyone shed some light of wisdom? :) Error : .onLoad failed in loadNamespace() for 'rJava', details: call: stop("No CurrentVersion entry in '", key, "'! Try re-installing Java and make sure R and Java have matching architectures.") error: object 'key' not found Error: package/namespace load failed