Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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.

    #28246

    Answer 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 . . .

    #28247

    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)

    #28248

    Obviously 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.htm

    #28249

    Thank you. Which is the correct file to download please?

    #28250

    pd4ml.pro.trial.361b1.zip is a good choice.
    You need pd4ml_demo.jar and ss_css2.jar from it.

    #28251

    Thank you that works fine!

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Deployment / Configuration issues’ is closed to new topics and replies.