Call a java method in R using rJava
I use rJava to call a java code from R, trying to call an algorithm from SPMF tool. I tried to use a wrapper function as in this question , but this did not work with the SPMF code. this is my R code: library(rJava) .jinit() .jaddClassPath ( "C:/mydrive/eclipse-workspace/myfile/src") print(.jclassPath()) obj <- .jnew("AlgoFPGrowth_Strings") s <- .jcall(obj, returnSig= "V", method="runAlgorithm", "input.csv","output.txt") , 0.4 ) it gives me error ,method runAlgorithm with signature (D)V not found this is the main in java: public static void main(String[] args) throws Exception { AlgoFPGrowth