Skip to content

How to run DITA-OT within a JAR packaged using Maven? #4229

Answered by jelovirt
karlfranks asked this question in Q&A
Discussion options

You must be logged in to vote

You can run DITA-OT using the Java API but you have to set up the environment so that the DITA-OT distribution is expanded into a directory, not in a JAR. In your case the error message

Caused by: Basedir /full/example/path/jar:file:/path/to/this.jar!/dita-ot-3.7.3 does not exist

Shows that the URL returned from classloader gives you back a JAR URI and that doesn't work.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@karlfranks
Comment options

@jelovirt
Comment options

Answer selected by karlfranks
Comment options

You must be logged in to vote
2 replies
@jelovirt
Comment options

@jelovirt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants