Conflict with xlsx package and choose.files
I recently had this issue with an installation of R on a new machine. Make sure you are using the correct version of Java (32-bit vs 64-bit) to match your version of R. Note that the 64-bit version of Java is not found on their main download page but on their "manual" d/l page here.