[R] Using Java methods in R

hill0093 hill0093 at umn.edu
Sat Apr 23 14:32:59 CEST 2011


No answer to my post, 
so let's try a simpler question. Am I doing this correctly?
I have the RGui with R Console on the screen.
On rhe top pullDowns, Packages > Install Packages > USA(IA)> rJava 
> library(rJava)
> .jinit()
> qsLin <- .jnew("C:/ad/j/CalqsLin")
Error in .jnew("C:/ad/j/CalqsLin") : 
  java.lang.NoClassDefFoundError: C:/ad/j/CalqsLin

So I got this error which means I don't understand very much.
I go to C:/ad/j and get
C:\ad\j>dir CalqsLin.class
 Volume in drive C has no label.
 Volume Serial Number is 9A35-67A2
 Directory of C:\ad\j
04/23/2011  07:11 AM            14,651 CalqsLin.class
               1 File(s)         14,651 bytes
               0 Dir(s)  104,257,716,224 bytes free

Just to show my intentions, 
I had next wanted to call this java function method:
linTimOfCalqsStgIsLev("201104052359599999",-4) using:
> dblTim <-
> .jcall(qsLin,"D","linTimOfCalqsStgIsLev","201104052359599999","-4")
but that will probably also be wrong?
Obviously I don't understand.


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



More information about the R-help mailing list