#742276 pdfannotextractor & pax do not work at all

#742276#5
Date:
2014-03-21 14:37:48 UTC
From:
To:
pdfannotextractor does not complete successfully with any pdf file, and
always gives the following output:

$ pdfannotextractor /usr/share/doc/tig/manual.pdf --debug
PDFAnnotExtractor 0.1l, 2012/04/18 - Copyright (c) 2008, 2011, 2012 by Heiko Oberdiek.
* CLASSPATH: []
* is_win: [0]
* Which kpsewhich: [/usr/bin/kpsewhich]
* Backticks: [kpsewhich --progname pdfannotextractor --format texmfscripts pax.jar]
* Exit code: [0/success]
* pax.jar: [/usr/share/texlive/texmf-dist/scripts/pax/pax.jar]
* pdfbox.jar: [/usr/share/java/pdfbox.jar]
* Which java: [/usr/bin/java]
* System: [java -cp /usr/share/texlive/texmf-dist/scripts/pax/pax.jar:/usr/share/java/pdfbox.jar pax.PDFAnnotExtractor /usr/share/doc/tig/manual.pdf]
Exception in thread "main" java.lang.NoClassDefFoundError: org/pdfbox/cos/ICOSVisitor
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
        at java.lang.Class.getMethod0(Class.java:2774)
        at java.lang.Class.getMethod(Class.java:1663)
        at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.pdfbox.cos.ICOSVisitor
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 6 more
* Exit code: [1]

in case it matters (as the "Which java" line does not tell), java is
really /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java, from
openjdk-7-jre-headless 7u51-2.4.5-2, and libpdfbox-java 1:1.8.4+dfsg-1
was installed as described in bug #611298.

#742276#10
Date:
2014-03-21 14:59:36 UTC
From:
To:
merge 670040 742276
retitle 670040 pdfannotextractor & pax do not work at all

On 21.03.14 chrysn (chrysn@fsfe.org) wrote:

Hi,
This is similar to #670040. Please see that bug for explanation.

Regards,
  Hilmar

#742276#23
Date:
2022-07-23 22:10:16 UTC
From:
To:
Am 22.04.2012 um 15:27 teilte Juhapekka Tolvanen mit:

Hi,
hille@sid-amd64:~$ java -jar
/usr/share/texlive/texmf-dist/scripts/pax/pax.jar tps62120.pdf
* Processing file `tps62120.pdf' ...
hille@sid-amd64:~$ ls -ltr

This should have been solved years ago, we just forgot to close it sorry!

Hilmar