[
https://issues.apache.org/jira/browse/PDFBOX-5303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17433083#comment-17433083
]
Tilman Hausherr edited comment on PDFBOX-5303 at 10/22/21, 5:19 PM:
--------------------------------------------------------------------
Activation and bind are no longer part of java, you need to add it externally.
It's a bit tricky, you need to call the class you're running and then use the
pdfbox-app jar and the two other jars as class path. Here an example for
windows, the extra jar files are in the lib subdir.
{noformat}
java -cp "pdfbox-app-2.0.24.jar;./lib/*" org.apache.pdfbox.tools.PDFBox ....
{noformat}
(On linux use ":" instead of ";")
was (Author: tilman):
Activation and bind are no longer part of java, you need to add it externally.
It's a bit tricky, you need to call the class you're running and then use the
pdfbox-app jar and the two other jars as class path. Here an example for
windows, the jar files are in the lib subdir.
{noformat}
java -cp "pdfbox-app-2.0.24.jar;./lib/*" org.apache.pdfbox.tools.PDFBox ....
{noformat}
(On linux use ":" instead of ";")
> preflight-app fails on Java 11+ with NoClassDefFoundError:
> javax/activation/DataSource
> --------------------------------------------------------------------------------------
>
> Key: PDFBOX-5303
> URL: https://issues.apache.org/jira/browse/PDFBOX-5303
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.24
> Reporter: Sebb
> Priority: Major
>
> As the subject says.
> I could only get the app to work on Java8 and Java7
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]