similar to: rJava System.out / System.err & stacktraces

Displaying 20 results from an estimated 11000 matches similar to: "rJava System.out / System.err & stacktraces"

2012 Oct 04
1
Intermittent connectivity issues for JDBC / Oracle
I have been experiencing issues with an R script hanging when connecting to an Oracle database. To help debug, I found a function here in the nabble forum and made a small test script: #!/usr/bin/Rscript --no-restore --no-save --no-init-file library("RJDBC") drv<-JDBC("oracle.jdbc.OracleDriver","/home/oracle/lib/ojdbc6.jar", "'") dbCheck =
2013 Sep 06
1
Java exception error (Jcheck) while running an R script
Dear all, I am facing a problem with running a script that i have written in R and i hope you can help me spot which exactly is the problem and how i can solve it. The error I get is the following: ---- Error in .jcheck(silent = FALSE) : Java Exception <no description because toString() failed>.jcall(row[[ir]], "Lorg/apache/poi/ss/usermodel/Cell;", "createCell",
2008 Feb 19
1
rJava and matrices
Hi list, I'm wanting to use a matrix as input to some java code, but I seem to be unable to do this (See code below). When searching online for a solution I found that rJava 0.5-2 (the version under development not yet in CRAN) is adding "direct support for raw vectors as method parameters". Is this related? I also tried to use .jarray / .jcast in various combinations to no avail.
2010 Aug 18
1
rJava: System.exit(1) in Java causes R crash
I'm writing a package that successfully calls Java from R using rJava. When R sends my Java function bad data (through .jcall()), I get the error message details (when I run it on a console) and then: Java requested System.exit(1), closing R. Is there a way to call .jcall so that when Java receives bad data, the Java function will exit, but won't take down R with it? Thanks, Sigal
2007 Sep 27
2
rJava and RJDBC
I am desperate for help. I am trying to get the RJDBC and rJava .5to work on both my windows xp and linux Redhat EL5 Server. On both I get a ava.lang.ClassNotFoundException when calling JDBC(). My example is require(RJDBC) classPath='C:\\libraries\\mysql-connector-java-5.1.3-rc\\mysql-connector-java-5.1.3-rc-bin.jar' driverClass=c("com.mysql.jdbc.Driver") drv <-
2013 Sep 23
0
Unable to execute Java MapReduce (Hadoop) code from R using rJava
Hi All, I have written a Java MapReduce code that runs on Hadoop. My intention is to create an R package which will call the Java code and execute the job. Hence, I have written a similar R function. But when I call this function from R terminal, the Hadoop job is not running. Its just printing few lines of warning messages and does nothing further. Here is the execution scenario: *>
2008 Jul 02
1
Usage of rJava (.jcall) with Weka functions, any example?
Dear All, I'd like to use Weka functions that are not implemented (do not have interface) in RWeka, like the Remove function and others in the future! The .java() functionality is for that purpose but I haven't seen any example with Weka functions. Could anyone give me hand in how to do it? For instace if I want to use the weka.filters.unsupervised.attribute.Remove? 1. in the R console,
2007 Jan 31
0
Fwd: Unable to load rJava - Undefined Symbol GetCreatedJavaVMs
Could some pls help with this error message. Pls see below thanks Rupak ---------- Forwarded message ---------- From: Rupak Khurana <khurana.rupak@gmail.com> Date: Jan 31, 2007 2:46 PM Subject: Unable to load rJava - Undefined Symbol GetCreatedJavaVMs To: simon.urbanek@r-project.org Simon I am unable to load rJava. Pls see the log below. Any help is welcome and appreciated. thanks
2013 Jan 16
1
How to call Java main method using rJava package?
Hi, I am trying to integrate my Java program with R using rJava package. I want to execute the whole Java program from R. The main() method in my Java code calls all the other defined methods. So, I guess I have to call the main() method in .jcall. An example Java code: *class A { public static int mySum(int x, int y) { return x+y; } public static void
2014 Sep 26
1
[rJava] RJavaClassLoader and system classloader
Hi everyone, I want to call a Java application from R and have encountered some problems with the way rJava deals with the system class loader. To run my application, I use the following R script: > library(rJava) > .jinit() > .jaddClassPath("myApp.jar") > rWrapper <- .jnew("org/test/RWrapper") > .jcall(rWrapper,"V","start") My Java
2010 Dec 28
1
rJava question
After some trial and error I figured out how to pass matrices from R to java and back using rJava, but this method is not documented and I wonder if there is a better way? Anyway, here is what I found works: (m = matrix(as.double(1:12),3,4)) [shows m as you would expect] jtest <- .jnew("JTest") (v <- .jcall(jtest, '[[D], 'myfunc', .jarray(m), evalArray=FALSE)) [shows
2006 Nov 29
1
An example of using rJava
I have received a few private emails asking for some simple demonstration of calling Java code from R using the rJava package (which can be installed directly inside R). Here is one example for convolving two vectors (an example in the R manual about linking C with R). First write a Java program public class my_convolve { public static double[] convolve(double[] a, double[] b)
2012 Feb 27
0
Help with rJava
I am trying to invoke an in house developed java program from R and am running into some confusing issues. I've written this function: DoNormalSkew <- function() { .jaddClassPath("U:/development/software/untilities/ELVeSkew/dist/ELVeSkew.jar") .jpackage("U:/development/software/utilities/ELVeS/dist/ELVeSkew.jar") .jcall("java/lang/System", "V",
2006 Apr 15
2
cannot load rJava in R
Hi all! I recently tried to install the rJava package on my notebook (Debian Etch / Kernel 2.6.15 / jdk 1.5.0-5 / R 2.2.1 / rJava ?? the repo one, have a look below). I compiled R myself with "--with-readline=no" and "--enable-R-shlib flags". Now, each time loading the library rJava I encouter the same error. I reinstalled several times (as root), always the same problem:
2011 Apr 30
3
Copying to R a rectangular array from a Java class
Bare test code: My simple Java test class source and R test code follow: public class RJavTest { public static void main(String[]args) { RJavTest rJavTest=new RJavTest(); } public final static String conStg="testString"; public final static double con0dbl=10000001; public final static double[]con1Arr=new double[] { 10001,10002,10003,10004,10005,10006 }; public final static
2013 Feb 08
1
ClassNotFoundException when running distributed job using rJava package
Hi, I have a MapReduce Java code, which I am calling from R using rJava. I have prepared the R package and tested that successfully. But when I deployed the package in a cluster and executed it, I am getting ClassNotFoundException. If I run the same job directly without integrating with R, it runs perfectly. Here is my R code: library(rJava) muMstSpark <- function(mesosMaster = NULL, input =
2016 Jul 26
3
Exportar datos en formato de Excel
Hola. En mi caso, no he podido resolver los problemas con el Java para usar XLConnect, que en los papeles me parece el mejor. Supongo que algo de la arquitectura del sistema o bien de la relación entre el Java, el R y el RStudio. Así que utilizo library(openxlsx) write.xlsx(datos, file = "EDA1.xlsx") #donde datos es el objeto que quiero guardar. Requiere instalar el RTools, según tipo y
2012 Oct 30
2
Java Exception error while reading large data in R from DB using RJDBC.
Dear List, Java Exception error while reading large data in R from DB using RJDBC. I am trying to read large data from DB table(Vectorwise), using RJDBC connection. I have tested the connection with small size data and was able to fetch DB tables using same connection(conn as in my code). Please suggest where am i going wrong or alternate option to solve such issues while reading large DB
2018 Feb 06
0
rJava garbage collect
rJava offers a mechanism to call arbitrary methods in Java. Wouldn't you use that mechanism to call whatever you would call if you were programming in Java (e.g. System.gc)? -- Sent from my phone. Please excuse my brevity. On February 5, 2018 7:34:17 PM PST, Benjamin Tyner <btyner at gmail.com> wrote: >Hi > >Does rJava offer a way to instruct the JVM to perform a garbage
2018 Feb 06
4
rJava garbage collect
Hi Does rJava offer a way to instruct the JVM to perform a garbage collection? Regards Ben