[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#792676: marked as done (libpdfbox-java: pdfannotextractor.pl fails to find org.pdfbox.cos.ICOSVisitor class)



Your message dated Sun, 24 Jul 2022 00:10:16 +0200
with message-id <7a177f22-38e3-ec15-8832-c5192d268b88@web.de>
and subject line Re: Bug#670040: pax do not work at all
has caused the Debian Bug report #670040,
regarding libpdfbox-java: pdfannotextractor.pl fails to find org.pdfbox.cos.ICOSVisitor class
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
670040: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670040
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libpdfbox-java
Version: 1:1.8.7+dfsg-1
Severity: important

Dear Maintainer,

I am trying to apply the solution proposed in this answer
http://tex.stackexchange.com/a/48118/82119 but on following the first
step, the pdfannotextractor.pl dies with:

$ /usr/share/texlive/texmf-dist/scripts/pax/pdfannotextractor.pl capturing-ddl.pdf 
PDFAnnotExtractor 0.1l, 2012/04/18 - Copyright (c) 2008, 2011, 2012 by Heiko Oberdiek.
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:2615)
        at java.lang.Class.getMethod0(Class.java:2856)
        at java.lang.Class.getMethod(Class.java:1668)
        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

I have no idea how to fix this problem.  Maybe I need to specify a
classpath or something?  I looked at the .pl file itself and there's a
--install option, but on running it, it says the PDFBox "is already
found":

$ /usr/share/texlive/texmf-dist/scripts/pax/pdfannotextractor.pl
--install
PDFAnnotExtractor 0.1l, 2012/04/18 - Copyright (c) 2008, 2011, 2012 by Heiko Oberdiek.
* Nothing to do, because PDFBox is already found:
  /usr/share/java/pdfbox.jar

Not quite sure what to do next.  Maybe it's just missing a dependency?


-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_CL.utf8, LC_CTYPE=es_CL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libpdfbox-java depends on:
ii  libfontbox-java  1:1.8.7+dfsg-1

libpdfbox-java recommends no packages.

libpdfbox-java suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Am 22.04.2012 um 15:27 teilte Juhapekka Tolvanen mit:

Hi,

% java -jar /usr/share/texlive/texmf-dist/scripts/pax/pax.jar kilinorganisaatio.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:2442)
         at java.lang.Class.getMethod0(Class.java:2685)
         at java.lang.Class.getMethod(Class.java:1620)
         at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:488)
         at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:480)
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:423)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
         ... 6 more


I tried that with three different PDF-files. One of them was my
Master's Thesis:

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
--
sigfault

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---

Reply to: