rjava

rjava .jcall issue

◇◆丶佛笑我妖孽 提交于 2019-12-19 08:12:27
问题 I am currently working on developing an R package to integrate java code within R. However, I am having issues trying to properly call the java class methods. So far I have independently developed and compiled a java program into a class file and then packaged it up as a jar file. A sample of my code is as follows: library(rJava) .jinit() .onLoad <- function(lib, pkg) { pathToSdk <- paste(system.file(package = "mailViz") , "C:\\path\\to\\libs", sep="") jarPaths <- c(paste(pathToSdk, "mail.jar

RNetlogo and NetLogo 5.3 error

被刻印的时光 ゝ 提交于 2019-12-19 04:12:58
问题 I have been using RNetLogo with NetLogo 5.2.1 without troubles. Now I am using NetLogo 5.3 and I get this error: > library(RNetLogo) > nl.path <- "/Applications/NetLogo 5.3/" > NLStart(nl.path, gui = FALSE) java.lang.NoClassDefFoundError: org/nlogo/workspace/Controllable at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) Caused by: java.lang.ClassNotFoundException at RJavaClassLoader.findClass(RJavaClassLoader.java:383) at java.lang.ClassLoader.loadClass

R CMD javareconf not finding jni.h

落花浮王杯 提交于 2019-12-18 14:16:56
问题 I'm trying to install rJava in a docker container based on debian (jessie) with Anaconda. As root, I did $ apt-get update && apt-get install -y --no-install-recommends \ default-jdk default-jre libicu-dev Then $ R CMD javareconf Java interpreter : /usr/lib/jvm/jdk1.8.0_121/jre/bin/java Java version : 1.8.0_121 Java home path : /usr/lib/jvm/jdk1.8.0_121 Java compiler : /usr/lib/jvm/jdk1.8.0_121/bin/javac Java headers gen.: /usr/lib/jvm/jdk1.8.0_121/bin/javah Java archive tool: /usr/lib/jvm

rjava dependent package installation Segmentation fault (core dumped)

旧巷老猫 提交于 2019-12-18 12:38:45
问题 I am trying to reinstall a package that I was previously able to install and use. I was building a package of my own after my computer unexpectedly restarted and then I started to have problems loading the rpgraph package. So I decided to uninstall it and to reinstall it. When I did so I got the following error: library(devtools) library(rJava) install_github("Albluca/rpgraph") Downloading GitHub repo Albluca/rpgraph@master from URL https://api.github.com/repos/Albluca/rpgraph/zipball/master

Error of java path on loading rJava package

ε祈祈猫儿з 提交于 2019-12-18 12:21:12
问题 I am trying to load 'rJava' package in my Unix machine. Before loading I have set the path using Sys.setenv("JAVA_HOME= myfilepath") in my R script. Despite this I am getting the following error (Below is the part of the error): checking Java support in R... present: interpreter : '/usr/lib/jvm/jre/bin/java' archiver : '/usr/lib/jvm/jre/../bin/jar' compiler : '/usr/lib/jvm/jre/../bin/javac' header prep.: '/usr/lib/jvm/jre/../bin/javah' cpp flags : '-I/usr/lib/jvm/java/include I/usr/lib/jvm

Problems loading rJava Package on Win7

∥☆過路亽.° 提交于 2019-12-18 08:11:07
问题 I have installed the latest versions of R (2.15.2) and Java (7.11), and through RStudio (0.97.310) I am trying to load the rJava package. It seemed to install properly, but when I call library(rJava) I get the following error: 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 for

Setting up Java R Interface (JRI) on Windows

杀马特。学长 韩版系。学妹 提交于 2019-12-18 05:13:09
问题 I have followed guides on the web and looked at questions on stackoverflow but I am still not able to set up JRI on Windows. Here are the steps I have taken: 1) Install R 2) Execute install.packages("rJava") in R to install rJava 3) Create a R_HOME system variable with value C:\Program Files\R\R-3.1.2 4) Add the following to my PATH variable: C:\Program Files\R\R-3.1.2\bin\x64;C:\Users\USERNAME\Documents\R\win-library\3.1\rJava\jri\x64 5) Added the JRI.jar (located in C:\Users\USERNAME

gcc: error: libgomp.spec: No such file or directory with Amazon Linux 2017.09.1

让人想犯罪 __ 提交于 2019-12-18 04:18:10
问题 I'm trying to install the rJava package in R running on an Amazon Lightsail instance (Amazon Linux 2017.09.1). I keep getting an error that gcc can't find libgomp.spec I've located the file at /usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.spec and I've tried setting up a symbolic link to it, but I haven't been able to figure out where to put the symbolic link so gcc can find it. For example, this doesn't seem to work: ln -s /usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.spec /usr/local/lib64

libjvm.so: cannot open shared object file: No such file or directory

孤人 提交于 2019-12-18 01:56:52
问题 Trying to install the rJava package on R, on my 14.10 ubuntu, using this code if (!require(rJava)) install.packages('rJava') got few errors related to java including jni problems, after reinstalling the jdk, and tried to run the same code again, got that error Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/usr/local/lib/R/site-library/rJava/libs/rJava.so': libjvm.so: cannot open shared object

libjvm.so: cannot open shared object file: No such file or directory

廉价感情. 提交于 2019-12-18 01:55:00
问题 Trying to install the rJava package on R, on my 14.10 ubuntu, using this code if (!require(rJava)) install.packages('rJava') got few errors related to java including jni problems, after reinstalling the jdk, and tried to run the same code again, got that error Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/usr/local/lib/R/site-library/rJava/libs/rJava.so': libjvm.so: cannot open shared object