[
https://issues.apache.org/jira/browse/PDFBOX-5241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17385017#comment-17385017
]
Tilman Hausherr commented on PDFBOX-5241:
-----------------------------------------
try reinstall Corretto. Make sure to download the latest version from
https://corretto.aws/downloads/latest/amazon-corretto-16-x64-windows-jdk.msi
Here's what I get with {{java -version}}
{noformat}
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment Corretto-16.0.1.9.1 (build 16.0.1+9)
OpenJDK 64-Bit Server VM Corretto-16.0.1.9.1 (build 16.0.1+9, mixed mode,
sharing)
{noformat}
16.0.2 is likely to come out soon, it has already been released by Oracle.
Also make sure that you have deleted all old pdfbox versions from your
classpath, and that your jar files have the correct size, and do contain
org.apache.pdfbox.pdmodel.font.encoding.GlyphList, it should be at
org\apache\pdfbox\pdmodel\font\encoding\GlyphList.class .
> Calling constructor of PDFTextStripper throws java.lang.NoClassDefFoundError
> ----------------------------------------------------------------------------
>
> Key: PDFBOX-5241
> URL: https://issues.apache.org/jira/browse/PDFBOX-5241
> Project: PDFBox
> Issue Type: Bug
> Components: Text extraction
> Affects Versions: 2.0.24
> Environment: Windows 10 (amd64)
> Java-Version: 16.0.1 (Amazon Corretto)
> Reporter: Andreas
> Priority: Major
>
> Using 2.0.24
> <dependency>
> <groupId>org.apache.pdfbox</groupId>
> <artifactId>pdfbox</artifactId>
> <version>2.0.24</version>
> </dependency>
> On some of our customer's devices simply instantiating PDFTextStripper causes
> the JVM to crash
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.pdfbox.pdmodel.font.encoding.GlyphListjava.lang.NoClassDefFoundError:
> Could not initialize class org.apache.pdfbox.pdmodel.font.encoding.GlyphList
> at
> org.apache.pdfbox.text.LegacyPDFStreamEngine.<init>(LegacyPDFStreamEngine.java:120)
> at org.apache.pdfbox.text.PDFTextStripper.<init>(PDFTextStripper.java:214)
>
> When running Java 11 this problem was not reported at all, so I guess this is
> a Java 16 issue.
> If there is anything else I can provide please let me know
> Thank you
>
> EDIT: We cannot reproduce this issue on all machines, it seems to appear
> randomly
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]