Hi all, I've got an R script that loads the following libraries library(rJava) library(RWeka) library(tm) At some when I try to run the tm tokenizer as MyTokenizer <- function(x) NGramTokenizer(x, Weka_control(min = 1, max = 4)) ECONOMIST_TDM <- TermDocumentMatrix(ECONOMIST_CORPUS,control=list(tokenize=MyTokenizer)) I get the following error unless I'm running R as root... Error in .jcall("RWekaInterfaces", "[S", "tokenize", .jcast(tokenizer, : RcallMethod: cannot determine object class> ECONOMIST_TDM <-TermDocumentMatrix(ECONOMIST_CORPUS,control=list(tokenize=MyTokenizer)) Error in .jcall("RWekaInterfaces", "[S", "tokenize", .jcast(tokenizer, : RcallMethod: cannot determine object class I first noticed this problem in the summer, and just left it thinking I would stumble across a solution. I do realize this means I need to set permissions somewhere properly -- but I haven't stumbled across the affected file and even if I don't know what the proper permisions/owner/group should be. Does anyone know what I need to do? I'm running R on Lucid Lynx. Regards, Nick [[alternative HTML version deleted]]