HI, I was trying to install xlsx package for reading in Excel 2007 files. The installation went smoothly. But when I tried to load the library, I got the following error message:
> library(xlsx) Loading required package: xlsxjars Loading required package: rJava Error : .onLoad failed in loadNamespace() for 'xlsxjars', details: call: .jinit() error: cannot obtain Class.getSimpleName method ID Error: package 'xlsxjars' could not be loaded The help page of the xlsx package has a note "NOTE: You may need to add to your PATH variable the location of your JVM (e.g. C:/Program Files/Java/jre6/bin/client) to get rJava working. " I did add that to the PATH variable using: > Sys.setenv(PATH=paste(Sys.getenv("PATH"),"C:\\Program >Files\\Java\\jre6\\bin\\client",collapse=';')) But the error still persists. Any suggestions? Thanks John ______________________________________________ R-help@r-project.org 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.