Hy, In my case I just invoked as root (on a linux box) the command R CMD javareconf and checked if my system and root vm did match the version of the user vm. After this the command .jinit(parameters=c("-Xmx512m","-Xmx128m")) could be executed without errors. I got this information from http://www.rosuda.org/JGR/down.shtml
-- Hi, Has anybody encountered the following problem? TIA, Gregoire > library(rJava) > .jinit() Error occurred during initialization of VM java.lang.OutOfMemoryError: unable to create new native thread This would not help: > .jinit(parameters=c("-Xmx512m","-Xmx128m")) R and rJava versions are: > installed.packages()["rJava",] Package LibPath Version "rJava" "/home/user/lib/R" "0.4-3" Priority Bundle Contains NA NA NA Depends Suggests Imports "R (>= 2.0.0), methods" NA NA Built "2.3.1" > R.Version() $platform [...] $system [1] "i686, linux-gnu" [...] $version.string [1] "Version 2.3.1 (2006-06-01)" ______________________________________________ R-help@stat.math.ethz.ch 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.