search for: jaddclasspath

Displaying 8 results from an estimated 8 matches for "jaddclasspath".

2013 Sep 23
0
Unable to execute Java MapReduce (Hadoop) code from R using rJava
...uot;), "/jars", sep="")* * pkgPath = paste("../inst", "/jars", sep="")* * * * # Initializes the JVM specifying the directory where the main Java class resides:* * .jinit("pkgPath")* * * * # Adds all the required JAR to the class path:* * .jaddClassPath(paste(pkgPath, "Eda.jar", sep="/"))* * .jaddClassPath(paste(pkgPath, "commons-cli-1.2.jar", sep="/"))* * .jaddClassPath(paste(pkgPath, "hadoop-hdfs-2.0.0-cdh4.3.0.jar", sep="/"))* * .jaddClassPath(paste(pkgPath, "slf4j-log4j12-1.6.1.j...
2011 Jun 26
1
RJDBC and multiple classpaths
...://www.csv-jdbc.com/ guys. The driver work fine when tested with DBVisualizer or another JDBC thing. The problem is that driver needs 3 other more jar files to work. Under R I have tried this and does not work: > library(RJDBC) Loading required package: DBI Loading required package: rJava > .jaddClassPath("/opt/DbVisualizer-7.1.1/jdbc/mdb/log4j.jar") > .jaddClassPath("/opt/DbVisualizer-7.1.1/jdbc/mdb/commons_lang.jar") > .jaddClassPath("/opt/DbVisualizer-7.1.1/jdbc/mdb/commons_logging.jar") > > drv <- JDBC("jstels.jdbc.mdb.MDBDriver", "/opt...
2013 Feb 08
1
ClassNotFoundException when running distributed job using rJava package
...the external Scala and Java JARS pkgPath = paste(system.file(package="MuMstBig"), "/jars", sep="") # Initializes the JVM specifying the directory where the main Java class resides: .jinit("pkgPath") # Adds all the required JARs to the class path: .jaddClassPath(paste(pkgPath, "Prims.jar", sep="/")) .jaddClassPath(paste(pkgPath, "MSTInSpark.jar", sep="/")) .jaddClassPath(scalaLib) .jaddClassPath(sparkCore) # Creates the R object for the main Java class: obj <- .jnew("MSTInSpark") # Calls th...
2011 Apr 30
3
Copying to R a rectangular array from a Java class
...03,304 } }; public final static String retConStg() { return(conStg); } public final static double retCon0dbl() { return(con0dbl); } public final static double[] retCon1Arr() { return(con1Arr); } public final static double[][] retCon2Arr() { return(con2Arr); } } library(rJava) .jinit() .jaddClassPath("C:/ad/j") # a directory on my disk print(.jclassPath()) rJavaTst <- .jnew("RJavTest") # compilation of class code connStg <- .jfield(rJavaTst,sig="S","conStg") print(connStg) connStgRet <- .jcall(rJavaTst,returnSig="S","retConStg&qu...
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", method=Main.main(), "U:/development/software/utilities/ELVeSkew/test/csv",...
2012 Mar 22
3
calling java from R and using java time series double precision array
I haven't had time to try using R for over a year, but have a colleage who wants to. We work with time series and our current version of our calendar-time subroutines in java converts both directions between linear time and calendar. We have used calendar time since year 1965 starting out then with Fortran. Calendar time can be CnYrMoDa | CnYrMoDaHr | CnYrMoDaHrMn | CnYrMoDaHrMnSc |
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 application has a plugins loading mechanism that uses a specific PluginClassLoader to load plugins stored in additional JAR files (e.g. plugin.jar). This Pl...
2008 May 22
6
Alternatives to rJava and JRI
Has anyone come across any alternatives to rJava and JRI? Are they any good? Better perhaps? Please give your reasons. Thanks, Danish - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are