You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Phanu Choomsit <ph...@yahoo.com.INVALID> on 2020/01/21 20:37:15 UTC
can not run application in pdfbox-examples-2.0.18.jar
Dear pdfbox developer team,
I successfully compile pdfbox-2.0.18 from source with commandmvn clean install
I can execute pdfbox-app-2.0.18.jar. it response with available commands.
java -jar app/target/pdfbox-app-2.0.18.jar# PDFBox version: "2.0.18"Usage: java -jar pdfbox-app-x.y.z.jar <command> <args..>
Possible commands are: Decrypt Encrypt ExtractText ExtractImages OverlayPDF PrintPDF PDFDebugger PDFMerger PDFReader PDFSplit PDFToImage TextToPDF WriteDecodedDoc#
When I try to execute pdfbox-examples-2.0.18.jar
java -jar examples/target/pdfbox-examples-2.0.18.jar# it show errorno main manifest attribute, in examples/target/pdfbox-examples-2.0.18.jar
After I extract pdfbox-examples-2.0.18.jar, the file META-INF/MANIFEST.MF is absent.So it don't know where to start an application in pdfbox-examples-2.0.18.jar.
I also try another way but no luck.
java -cp examples/target/classes:. org.apache.pdfbox.examples.signature.CreateSignature # it show errorError: Could not find or load main class org.apache.pdfbox.examples.signature.CreateSignature
Is there a way to run applications in pdfbox-examples-2.0.18.jar
My system:macOS 10.15.2maven 3.6.3java 1.8.0_133javac 1.8.0_133pdfbox 2.0.18
Best regards,Phanu C.Bangkok Thailand
Re: can not run application in pdfbox-examples-2.0.18.jar
Posted by Tilman Hausherr <TH...@t-online.de>.
The example subproject is just example source code. There are maybe 50
different "main" there. Depending on your IDE, you can run the files
directly there. Or copy what you need in your own projects.
Tilman
Am 21.01.2020 um 21:37 schrieb Phanu Choomsit:
> When I try to execute pdfbox-examples-2.0.18.jar
> java -jar examples/target/pdfbox-examples-2.0.18.jar# it show errorno main manifest attribute, in examples/target/pdfbox-examples-2.0.18.jar
> After I extract pdfbox-examples-2.0.18.jar, the file META-INF/MANIFEST.MF is absent.So it don't know where to start an application in pdfbox-examples-2.0.18.jar.
> I also try another way but no luck.
> java -cp examples/target/classes:. org.apache.pdfbox.examples.signature.CreateSignature # it show errorError: Could not find or load main class org.apache.pdfbox.examples.signature.CreateSignature
>
> Is there a way to run applications in pdfbox-examples-2.0.18.jar
> My system:macOS 10.15.2maven 3.6.3java 1.8.0_133javac 1.8.0_133pdfbox 2.0.18
> Best regards,Phanu C.Bangkok Thailand
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org