Le 14/10/10 20:28, lord12 a écrit :
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?
It would be useful if you showed your Test java class and repost on the
appropriate mailing list for rJava:
http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/b8wOqW : LondonR Rcpp slides
|- http://bit.ly/cCmbgg : Rcpp 0.8.6
`- http://bit.ly/bzoWrs : Rcpp svn revision 2000
______________________________________________
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.