0

I've been using the xlsx package for R successfully for a while now. That package requires rjava and ever since the most recent Windows update, rjava now throws an error in R. The error is:

require(xlsx) 
Loading required package: xlsx
Loading required package: xlsxjars
Loading required package: rJava
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

The JVM is installed and the path is set:

C:\Program Files\R\R-2.15.2\bin\x64>java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)

and it happens in R versions 2.15.0 and 2.15.2.

Any ideas on what it could be or a fix?

Thanks in advance.

user1505631
  • 527
  • 4
  • 13
  • [**This post**](http://geekycoder.wordpress.com/2009/07/08/java-tips-adventure-in-resolving-the-java-error-error-occurred-during-initialization-of-vm/) seems to address your issue. The basic idea is to `delete java.exe` from `windows/system32` folder so that it gets called from the bin folder. – Arun Jan 29 '13 at 22:59
  • Thanks Arun, I read through the post and made sure my java.exe was the one in the bin file, not system32. However, the error remains. Any ideas of what could have happened? I miss R and xlsx. Cheers – user1505631 Jan 30 '13 at 01:25
  • Did you remove the file or just made sure that the path was set right? If so, try `removing` the one in the `windows/system32` folder. That's all I've got for now. I'll write back if I find something. – Arun Jan 30 '13 at 06:59
  • I did remove the system32 file. I've had to convert everything to csv files and use read.csv but I'm worried that other packages may not work (yet to be used). Thanks for your help! – user1505631 Feb 06 '13 at 02:20

0 Answers0