PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: installation / getting started
   PostPosted: 12 Oct 2010, 10:29 
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.


  Subject: Re: installation / getting started
   PostPosted: 12 Oct 2010, 12:04 
Answer to previous question was have java installed. But now I'm getting this error


C:\Exe\dxl2pdf>cd C:\tmp\dxl2pdf

C:\tmp\dxl2pdf>java -Xmx512m -cp xml.jar;notes.jar;pd4ml_demo.jar;. Dxl2PdfE:\We
bsites\_tmp\bpl1454.html 800 -debug -usetmpfiles -out E:\Websites\_tmp\bpl1454.h
tml.pdf -xsl dxl4pd4ml.xsl
Exception in thread "main" java.lang.NoClassDefFoundError: Dxl2PdfE:\Websites\_t
mp\bpl1454/html
Caused by: java.lang.ClassNotFoundException: Dxl2PdfE:\Websites\_tmp\bpl1454.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\_tmp\bpl1454.html. Program wi
ll exit.

C:\tmp\dxl2pdf>pause
Press any key to continue . . .


  Subject: Re: installation / getting started
   PostPosted: 12 Oct 2010, 12:07 
I 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)
...


  Subject: Re: installation / getting started
   PostPosted: 12 Oct 2010, 12:14 
Obviously it must be a space between Java class name and the document path:
Dxl2Pdf E:\Websites\_tmp\bpl1454/html
instead of
Dxl2PdfE:\Websites\_tmp\bpl1454/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.htm


  Subject: Re: installation / getting started
   PostPosted: 12 Oct 2010, 12:27 
Thank you. Which is the correct file to download please?


  Subject: Re: installation / getting started
   PostPosted: 12 Oct 2010, 12:38 
pd4ml.pro.trial.361b1.zip is a good choice.
You need pd4ml_demo.jar and ss_css2.jar from it.


  Subject: Re: installation / getting started
   PostPosted: 05 Nov 2010, 08:50 
Thank you that works fine!


Last bumped by Anonymous on 05 Nov 2010, 08:50.



[Reply]     [ 7 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share