Re: ERROR: A class needed by class org.dita.dost.ant.IntegratorTask cannot be found #DITA-OT


Björn Dahmen
 

Hi Radu,

thanks for your help. The error message does not appear while trying to create an output (like pdf for example), but after entering the DITA-OT directory and trying to install dita itself using the command ant -f Integrator.xml. I have never encountered that error message before.

Regards,

Bjoern


From: dita-users@groups.io <dita-users@groups.io> on behalf of Radu Coravu <radu_coravu@...>
Sent: Tuesday, December 3, 2019 9:17 AM
To: dita-users@groups.io <dita-users@groups.io>
Subject: Re: [dita-users] ERROR: A class needed by class org.dita.dost.ant.IntegratorTask cannot be found
 
Hi Björn,

Are you starting the DITA OT process by using the recommended startup
scripts ("bin\dita.bat" or "bin\dita" executables) or do you have your
custom way of starting the processing?

https://www.dita-ot.org/dev/topics/build-using-dita-command.html

The command line scripts should know exactly what libraries need to be
loaded and used.

There is a library "DITA-OT\lib\slf4j-api-1.7.25.jar" which is bundled
with the DITA OT but it does not seem to be loaded by the class loader
of the process which you are starting on your side.

Regards,
Radu

Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
On 12/2/2019 7:33 PM, Björn Dahmen wrote:
> Hi there,
> I have been working with DITA for a couple of years by now. I know about
> setting path and environmental variables successfully.
> Nevertheless, since yesterday, when ever I try to install the DITO OT, I
> get this error:
>
> BUILD FAILED
> D:\dita-ot-3.4\integrator.xml:39: taskdef A class needed by class
> org.dita.dost.ant.IntegratorTask cannot be found: org/slf4j/Logger
>   using the classloader
> AntClassLoader[D:\dita-ot-3.4\lib\dost.jar;D:\dita-ot-3.4\lib\dost-configuration.jar]
>
> Does any one know how to fix this? JDK 8 u 231 is installed...
>
> Thanks in advance!
>





Join main@dita-users.groups.io to automatically receive all group messages.