drmacro / wordinator

Generate high-quality DOCX files using a simplified XML format (simple word processing XML).
Apache License 2.0
38 stars 8 forks source link

Command line exception #122

Open jdwinfodesign opened 1 year ago

jdwinfodesign commented 1 year ago

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.

larsga commented 1 year ago

The problem is something to do with your classpath. To diagnose it we need to know how you invoked Java, what your classpath was, and how the jar you're referring to was built.

drmacro commented 1 year ago

I believe this is fixed on the develop branch--it's an issue with how the logging libraries are used (52bbfc75c225921122df1753cbe9c0ffa155ba93).

If you can build from source, try checking out develop branch, do mvn clean install and run the all-dependencies jar from the target/ directory.

If you're not able to build from source, let me know and I can make a jar for you.

jdwinfodesign commented 1 year ago

The problem is something to do with your classpath.

I was using the default JRE for Windows 11, which is a Java SE. I'm so used to running builds in Oxygen, I don't even have JAVA_HOME set on my machine. Should I set JAVA_HOME to a JDK instead?

larsga commented 1 year ago

I think @drmacro's tip is better than mine.

jdwinfodesign commented 1 year ago

@drmacro Build failed. I ran it a second time with error and debug switches and info piped to a text file.

log.txt