Pablo Ballesteros
Pablo Ballesteros

Reputation: 21

Error with extract_tables function when running in it in a jupyter-notebook but not in console

library(tabulizer)
f <- system.file("examples", "data.pdf", package = "tabulizer")
f1 <-  extract_tables(f,output = "data.frame")
f1[[1]]

Running the previous R command in a jupyter-notebook at VSCode outputs the error:

ERROR: Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.IllegalAccessException: class RJavaTools cannot access a member of class java.util.ArrayList$Itr (in module java.base) with modifiers "public" Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.IllegalAccessException: class RJavaTools cannot access a member of class java.util.ArrayList$Itr (in module java.base) with modifiers "public" Traceback:

  1. extract_tables(f, output = "data.frame")
  2. guessesIterator$hasNext()
  3. .jrcall(x, name, ...)
  4. .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, . .jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl, . "java/lang/Object"), .jnew("java/lang/String", method), . j_p, j_pc, use.true.class = TRUE, evalString = simplify, . evalArray = FALSE)
  5. .jcheck(silent = FALSE)

But not when running in the R console.

Thanks in advance.

*I am running Java 11 (I also tried the 17 version, but the problem remains)

Upvotes: 1

Views: 286

Answers (0)

Related Questions