Error in .jfindClass(as.character(driverClass)[1]) : java.lang.ClassNotFoundException

Hello RStudio Community,

Installed both 3.5.1 and 3.4.3 from source. Getting rJava connection error on both versions. Can anyone help me on this issue please.

library("DBI")
library("RJDBC")
drv <- JDBC("org.apache.hive.jdbc.HiveDriver", identifier.quote="`")
Error in .jfindClass(as.character(driverClass)[1]) :
java.lang.ClassNotFoundException

Thanks
Praneeth

Your Java executable cannot find a library it requires.