fixed
https://issues.apache.org/jira/browse/PDFBOX-6219

please test it:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/3.0.9-SNAPSHOT/

However we just had a release so you'll have to wait several months.

Tilman

On 2026/07/16 07:08:08 Wanling Fu wrote:
> Hi Tilman,
> 
> Sorry, I need to correct my previous reply. I missed actually running the
> PDF command on Linux; I only checked that the native image built there.
> 
> I ran the command on Linux now with PDFBox 3.0.8. The macOS test passes,
> but on Linux it crashes when Loader.loadPDF initializes PDDocument.
> 
> Environment:
> 
> - PDFBox 3.0.8
> - GraalVM CE 25.0.2+10.1 (JDK 25.0.2+10)
> - Linux amd64
> 
> The relevant part of the error is:
> 
>     java.lang.NoClassDefFoundError: java/awt/GraphicsEnvironment
>         at com.oracle.svm.core.jni.functions.JNIFunctions.FindClass(...)
>         at com.oracle.svm.core.jni.JNILibraryInitializer.initialize(...)
>         at java.awt.image.ColorModel.loadLibraries(ColorModel.java:208)
>         at java.awt.image.ColorModel.<clinit>(ColorModel.java:215)
>         at java.awt.image.Raster.<clinit>(Raster.java:172)
>         at
> org.apache.pdfbox.pdmodel.PDDocument.<clinit>(PDDocument.java:103)
>         at org.apache.pdfbox.Loader.loadPDF(...)
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to