[R] RJava help

lord12 trexinsd at yahoo.com
Thu Oct 14 20:28:03 CEST 2010


I need help with RJava. So I run this R code:

library(rJava) #load the rJava library
.jinit(classpath="c:/Documents and Settings/GV/workspace/Test/src",
parameters="-Xmx512m")
#the above is to load the Java virtual machine,


x = runif(1000)
y = runif(1000)
#the above are two vectors to convolve

#now you can call the Java method as
z=.jcall("Test", "[D", "convolve", x,y)

I get an error Error in .jcall("Test", "[D", "convolve", x, y) : 
  RcallMethod: cannot determine object class.

Why is this?



-- 
View this message in context: http://r.789695.n4.nabble.com/RJava-help-tp2995886p2995886.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list