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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to