HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Deployment / Configuration issues › installation / getting started
- This topic has 6 replies, 3 voices, and was last updated Nov 05, 2010
06:50:03 byAnonymous.
-
AuthorPosts
-
October 12, 2010 at 08:29#26468
What am I supposed to know/understand/have installed to make this work on command line?
“Java is not a recognized as an internal or external command, operable program or batch file.”
Thanks.
October 12, 2010 at 10:04#28246Answer to previous question was have java installed. But now I’m getting this error
C:Exedxl2pdf>cd C:tmpdxl2pdf
C:tmpdxl2pdf>java -Xmx512m -cp xml.jar;notes.jar;pd4ml_demo.jar;. Dxl2PdfE:We
bsites_tmpbpl1454.html 800 -debug -usetmpfiles -out E:Websites_tmpbpl1454.h
tml.pdf -xsl dxl4pd4ml.xsl
Exception in thread “main” java.lang.NoClassDefFoundError: Dxl2PdfE:Websites_t
mpbpl1454/html
Caused by: java.lang.ClassNotFoundException: Dxl2PdfE:Websites_tmpbpl1454.htm
l
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Dxl2PdfE:Websites_tmpbpl1454.html. Program wi
ll exit.C:tmpdxl2pdf>pause
Press any key to continue . . .October 12, 2010 at 10:07#28247I noticed the missing space before %1 in the batch file, the error now reads
Exception in thread “main” java.lang.NoClassDefFoundError: Dxl2Pdf
Caused by: java.lang.ClassNotFoundException: Dxl2Pdf
at java.net.URLClassLoader$1.run(Unknown Source)
…October 12, 2010 at 10:14#28248Obviously it must be a space between Java class name and the document path:
Dxl2Pdf E:Websites_tmpbpl1454/html
instead of
Dxl2PdfE:Websites_tmpbpl1454/html(as I just noticed – you resolved the problem)
Well, Dxl2Pdf is a Java class, designated to convert Lotus Notes documents in XML form (DXL) to PDF. Is it your intention? “html” at the end of the command line makes me suspect it is not.
If you need to convert HTML to PDF, take a look to the info:
http://pd4ml.com/html-to-pdf-command-line-tool.htmOctober 12, 2010 at 10:27#28249Thank you. Which is the correct file to download please?
October 12, 2010 at 10:38#28250pd4ml.pro.trial.361b1.zip is a good choice.
You need pd4ml_demo.jar and ss_css2.jar from it.November 5, 2010 at 06:50#28251Thank you that works fine!
-
AuthorPosts
The forum ‘Deployment / Configuration issues’ is closed to new topics and replies.
