Skip to content
Prev 392 / 1559 Next

one problem when i use package JRI

I use the JRI package in java to do some compute with R

but  i haved one  problem


              re.eval("library(lattice)");             //????????????????????????
              y=re.idleEval("print(1:10)");
              y=re.eval("feq <- read.delim('c:/minist.txt',header=T)");
              y=re.eval("feq1<-as.matrix(feq)");
              System.out.println(y=re.eval("feq1[1,]"));
              y=re.eval("jpeg()");
              y=re.eval("levelplot(feq1)");
              re.eval("dev.off()");
              re.end();
              System.out.println("end");


this block  can't run  , and  system warn :WARNING: org.rosuda.JRI.Mutex was
unlocked by other thread than locked! This may soon lead to a crash...
wwhwwhen i delete :  re.eval("library(lattice)");     this program  can
run
WHY?? can somebody  help me?