When trying to use 'tabulizer' package, JAVA_HOME cannot be determined from the Registry error is raised

When you try to use ‘tabulizer’ package, you might see the below error.

Error: Error : package or namespace load failed for 'tabulizer':
 .onLoad failed in loadNamespace() for 'tabulizerjars', details:
  call: NULL
  error: .onLoad failed in loadNamespace() for 'rJava', details:
  call: fun(libname, pkgname)
  error: JAVA_HOME cannot be determined from the Registry

If this is the case, you need to install Java to your PC.

ref: https://www.r-statistics.com/2012/08/how-to-load-the-rjava-package-after-the-error-java_home-cannot-be-determined-from-the-registry/