I am trying to use write.xlsx and I realized I first needed to run the xlsx library, and therefore the rJava library. I prosive to install the libraries and I got the following error while trying to run rJava:
Error: package or namespace load failed for ‘rJava’: .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(jli, FALSE) error: unable to load shared object '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib': dlopen(/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib, 10): no suitable image found. Did find: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib: mach-o, but wrong architecture /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib: mach-o, but wrong architecture
I searched for a solution and I saw the one has to make sure that Java is installed (which I think it is: java version "1.8.0_361" Java(TM) SE Runtime Environment (build 1.8.0_361-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.361-b09, mixed mode))
But I am still unable to run the libraries. Any help?
Thanks in advance!