Re: Class error compiling index for javahelp in DITA-OT 3.4 #DITA-OT #JavaHelp

Jeff Hooker

Hi Radu,

I am indeed running it from the dita command (.bat rather than .sh, since I'm on a Windows box) against an unmodified version of 3.4.


On Sat, Mar 14, 2020 at 8:04 AM Radu Coravu <radu_coravu@...> wrote:

Hi Jeff,

How exactly are you running the DITA OT?

If you are not running it using the DITA command:

then you will probably need to add in the classpath of the Java process which starts ANT a reference to the JAR library "DITA-OT/plugins/org.dita.javahelp/lib/javahelp.jar".

Radu Coravu
Oxygen XML Editor
On 3/13/20 11:00 PM, Jeff Hooker wrote:
Hi folks,

When I try to publish a sample project to Javahelp using 3.4 OT, I get this error message:

Error: The following error occurred while executing this line:
C:\Git\dita-ot-3.4\dita-ot-3.4\plugins\org.dita.javahelp\build_dita2javahelp.xml:181: java.lang.IllegalArgumentException: Index writer class not defined

The error comes back to the:

  <target name=""
            description="Build JavaHelp Index file">
        <local name="javahelp.index.output.dir"/>
        <condition property="javahelp.index.output.dir" value="${dita.output.dir}" else="${}">
          <isset property="inner.transform"/>
        <pipeline message="Extract index term."
          <module class="org.dita.dost.module.IndexTermExtractModule">
            <param name="output" location="${javahelp.index.output.dir}/${}.xml"/>
            <param name="targetext" value=".html"/>
            <param name="indextype" value="javahelp"/>
            <param name="encoding" value="${args.dita.locale}" if="args.dita.locale"/>

part of the build_dita2javahelp.xml file. If I delete everything between the target tags, then the javahelp builds, but obviously without an Index.

The eclipsehelp plugin uses the same module and it compiles and delivers an index, so the class is clearly present in the OT, but either it is not declared correctly in the javahelp plugin or some other detail is amiss. 

Anyone else seen this?



Join to automatically receive all group messages.