Error Installing the XLConnect Package on Ubuntu

I followed the steps here to install rjava on ubuntu. Everything worked as expected. Then I went ahead to install the XLConnect package without any error. But when I try loading the XLConnect package, I got this error:

Loading required package: XLConnectJars
Error: package or namespace load failed for ‘XLConnectJars’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/home/sdotserver1/R/x86_64-pc-linux-gnu-library/3.4/rJava/libs/': cannot open shared object file: No such file or directory
Error: package ‘XLConnectJars’ could not be loaded