Skip to content

Command line exception #122

@jdwinfodesign

Description

@jdwinfodesign

Downloaded Release 1.1.2 and ran successfully in Oxygen. I want to see the SWPX, so copied and pasted the command from the README:
java -jar wordinator.jar -i html/sample_web_page.html -o out -x xsl/html2docx/html2docx.xsl -t docx/Test_Template.dotx
The result:
`PS C:\Users\jdwin\Documents\wordinator-sandbox> java -jar wordinator.jar -i html/sample_web_page.html -o out -x xsl/html2docx/html2docx.xsl -t docx/Test_Template.dotx
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.

  • 2023-05-22 07:48:00,661 [INFO ] Input document or directory='html/sample_web_page.html'
  • 2023-05-22 07:48:00,661 [INFO ] Output directory ='out'
  • 2023-05-22 07:48:00,661 [INFO ] DOTX template ='docx/Test_Template.dotx'
  • 2023-05-22 07:48:00,661 [INFO ] XSLT template ='xsl/html2docx/html2docx.xsl'
  • 2023-05-22 07:48:00,661 [INFO ] Catalog =Not specified
  • 2023-05-22 07:48:00,661 [INFO ] Chunk level ='root'
  • 2023-05-22 07:48:01,084 [INFO ] Making output directory 'C:\Users\jdwin\Documents\wordinator-sandbox\out'...
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.wordinator.xml2docx.MakeDocx.transformXml(MakeDocx.java:249)
    at org.wordinator.xml2docx.MakeDocx.handleCommandLine(MakeDocx.java:204)
    at org.wordinator.xml2docx.MakeDocx.main(MakeDocx.java:86)
    Caused by: java.lang.UnsupportedOperationException: No class provided, and an appropriate one cannot be found.
    at org.apache.logging.log4j.LogManager.callerClass(LogManager.java:573)
    at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:598)
    at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:585)
    at org.wordinator.xml2docx.generator.DocxGeneratingOutputUriResolver.(DocxGeneratingOutputUriResolver.java:27)
    ... 3 more`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions