How to start using DITA by Java API

208 views
Skip to first unread message

Valentin Boltach

unread,
Jul 24, 2018, 7:50:11 AM7/24/18
to DITA-OT Users
Good day!
I'm new in DITA, and i want to implement this tool in java project via Java API. We have one page information, how to use it (https://www.dita-ot.org/3.1/reference/java-api.html), but when I try to run this code, it fails with:

Failed to read transtypes from configuration, using empty list.
Exception in thread "main" java.lang.IllegalArgumentException: Transtype html5 not supported
at org.dita.dost.ProcessorFactory.newProcessor(ProcessorFactory.java:58)
at com.epam.pay.log.Main.main(Main.java:35)

As I understood, it couldn't find configuration.properties and list of plugins. As I see. if we start tool by dita.bat, env.bat is started before main process. But how it could be implemented in Java code?


Jarno Elovirta

unread,
Jul 24, 2018, 8:08:32 AM7/24/18
to Valentin Boltach, DITA-OT Users
Do you have the $DITA_HOME/config directory in your classpath?

J

--
Sent from a mobile device.
--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Valentin Boltach

unread,
Jul 24, 2018, 8:12:52 AM7/24/18
to DITA-OT Users
Yes, but it did not have any effect

вторник, 24 июля 2018 г., 15:08:32 UTC+3 пользователь Jarno Elovirta написал:

Shri Jagdale

unread,
Feb 24, 2023, 7:44:15 AM2/24/23
to DITA-OT Users
Hello,
I am also facing the same issue. Is there any solution found yet?
Reply all
Reply to author
Forward
0 new messages