Need to use commons-text for StringEscapeUtils now
Hi, I'm working on updating pdftk-java in MacPorts to version 3.1.1 and it has this problem:
Error: could not load a required library for this operation.
java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringEscapeUtils
Make sure that bcprov and commons-lang3 are installed and included in the
classpath. See also https://gitlab.com/pdftk-java/pdftk/issues/2.
Something similar was reported to MacPorts with 3.0.6 last year.
I believe the problem is that I am using commons-lang 3.9, but as of commons-lang 3.6 StringEscapeUtils has moved to commons-text. I am not familiar with Java and am not sure how to update the code to account for this.