Reputation: 21
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:
- extract_tables(f, output = "data.frame")
- guessesIterator$hasNext()
- .jrcall(x, name, ...)
- .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)
- .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