我安装了以下版本的 OpenJDK:
java-1.11.0-openjdk-amd64 1101 /usr/lib/jvm/java-1.11.0-openjdk-amd64
java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64
在 Lubuntu 18.04 中使用 PDFsam 时出现以下错误:
INFO [12:15:47]: Starting PDFsam
INFO [12:15:48]: Transparent windows not supported by the platform
INFO [12:15:48]: Configuring Sejda 3.2.38
INFO [12:15:48]: Gestarted in 1 second
INFO [12:15:57]: 3.pdf loaded
INFO [12:15:57]: 4.pdf loaded
INFO [12:15:57]: 5.pdf loaded
INFO [12:15:58]: Starting task (org.sejda.impl.sambox.MergeTask@81b1817) execution.
WARN [12:15:59]: New fonts found, font cache will be re-built
WARN [12:15:59]: Building on-disk font cache, this may take a while
ERROR [12:15:59]: Unexpected error
java.lang.NoClassDefFoundError: Could not initialize class org.sejda.sambox.pdmodel.font.PDType1Font
at org.sejda.impl.sambox.util.FontUtils.<clinit>(FontUtils.java:74)
at org.sejda.impl.sambox.component.PDDocumentHandler.close(PDDocumentHandler.java:231)
at org.sejda.common.ComponentsUtility.nullSafeClose(ComponentsUtility.java:63)
at org.sejda.common.ComponentsUtility.nullSafeCloseQuietly(ComponentsUtility.java:49)
at org.sejda.impl.sambox.MergeTask.closeResources(MergeTask.java:232)
at org.sejda.impl.sambox.MergeTask.after(MergeTask.java:237)
at org.sejda.core.service.DefaultTaskExecutionService.actualExecution(DefaultTaskExecutionService.java:151)
at org.sejda.core.service.DefaultTaskExecutionService.execute(DefaultTaskExecutionService.java:71)
at org.sejda.core.service.DefaultTaskExecutionService.execute(DefaultTaskExecutionService.java:58)
at org.pdfsam.task.TaskExecutionController.lambda$request$0(TaskExecutionController.java:87)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)