FS#64159 - [pdftk] PLEASE ENTER SUMMARY

Attached to Project: Community Packages
Opened by soloturn (soloturn) - Thursday, 17 October 2019, 17:09 GMT
Last edited by Jonas Witschel (diabonas) - Thursday, 17 October 2019, 21:15 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jonas Witschel (diabonas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
$ grep commons /usr/bin/pdftk
CP='/usr/share/java/bcprov.jar:/usr/share/java/commons-lang/commons-lang.jar:/usr/share/java/pdftk/pdftk.jar'

$ ls -l /usr/share/java/bcprov.jar /usr/share/java/commons-lang/commons-lang.jar
ls: cannot access '/usr/share/java/bcprov.jar': No such file or directory
ls: cannot access '/usr/share/java/commons-lang/commons-lang.jar': No such file or directory

$ yay -Q | grep pdftk
pdftk 3.0.8-1

please either include the dependent jar files into the pdftk dir and set the classpath in meta-inf, or, deliver the dependent jar files to the location specified in the startup script.
This task depends upon

Closed by  Jonas Witschel (diabonas)
Thursday, 17 October 2019, 21:15 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Files are provided by optional dependencies
Comment by Jonas Witschel (diabonas) - Thursday, 17 October 2019, 21:14 GMT
The two files are provided by the (correctly specified) optional dependencies bcprov and java-commons-lang, resp. These don't need to be required dependencies because they are not necessary for every workflow (e.g. if you don't use encrypted PDF files, you won't need bcprov). If you attempt to perform an operation that uses these files, you will get a "java.lang.NoClassDefFoundError", in which case you will need to install the necessary optional dependency.

Loading...