Page 1 of 1

DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Fri Dec 12, 2008 11:59 pm
by gpchoc
Hello,
XEP is installed, but how can I integrate 'icu4j-4_0.jar'.
Within DITA-OT you have to paste the file into DITA-OT\demo\fo\lib - then you have to run "ant -f integrator.xml"!
Whats to do within the framework for Oxygen?

Thank you in advance
Joe

Re: DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Mon Dec 15, 2008 9:48 am
by Radu
Hi Joe,

To run an IDIOM PDF2 transformation using ICU4J just copy the jar to the OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\demo\fo\lib.
You do not have to run the integrator, the library is loaded automatically by the process if found.

Regards,
Radu

Re: DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Mon Dec 15, 2008 10:55 pm
by gpchoc
Hello Radu,
I copied "icu4j-4_0.jar" into the folder "OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\demo\fo\lib". After transforming the sample file to PDF2 I still get the following message:
transform.topic2fo:

Code: Select all

[dita-version] Search finished
[index-preprocess] [INFO] IBM ICU4J Collator is not found. Default Java Collator will be used
It seems that the "icu4j" is not really integrated?!
Best Regards,
Joe

Re: DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Tue Dec 16, 2008 9:24 am
by Radu
Hi Joe,

You'd better rename the library to icu4j.jar.
It seems that the DITA Open Toolkit process is looking for a particular jar file name.

Regards,
Radu

Re: DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Wed Dec 17, 2008 10:53 pm
by gpchoc
Hello Radu,
now, the process runs without this message :D
Thank you
Joe

Re: DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Wed Mar 17, 2010 1:28 pm
by susannecm
Hi all,

I had the same problem. To get rid of that message, I had to put icu4j.jar into frameworks\dita\DITA-OT\lib. For some reason, putting it into frameworks\dita\DITA-OT\demo\fo\lib did not work for me. I'm using oXygen 11.2.

Susanne

Re: DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Wed Mar 17, 2010 1:43 pm
by Radu
Hi Susanne,

Just tested with an Oxygen 11.2 installation and the procedure should work as described in the post.
Are you sure you are copying the icu4j.jar library in the correct Oxygen installation directory? Maybe you are copying to the directory of an older installation.
Also, maybe the content of the icu4j jar you are copying is incorrect.
You can also download an entire DITA Open Toolkit full-easy-install kit from http://sourceforge.net/projects/dita-ot/files/ and use the icu4j.jar found there in the \DITA-OT\lib path.

Regards,
Radu

Re: DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Wed Mar 17, 2010 2:28 pm
by susannecm
Hi Radu,
I'm pretty sure that I'm in the correct installation directory. The previous version was uninstalled by the setup.
I already have a separate DITA OT 1.5 installation. It contains XEP and the icu4j.jar file that I copied to the oXygen installation directory (I copied it twice). When I'm transforming from oXygen, I'm pointing to this copy of XEP, but I'm using the DITA OT that comes with oXygen.
I turned on verbose output to shed some light into this. Whenever I rename C:\Programme\Oxygen XML Editor 11\frameworks\dita\DITA-OT\lib\icu4j.jar to C:\Programme\Oxygen XML Editor 11\frameworks\dita\DITA-OT\lib\renamed_icu4j.jar, I get the following messages in the output:

Code: Select all

dropping C:\Programme\Oxygen XML Editor 11\frameworks\dita\DITA-OT\lib\icu4j.jar from path as it doesn't exist
...
[index-preprocess] [INFO] IBM ICU4J Collator is not found. Default Java Collator will be used
The file C:\Programme\Oxygen XML Editor 11\frameworks\dita\DITA-OT\demo\fo\lib\icu4j.jar is ignored.
Maybe I'm putting the file into the wrong transformation directory. The transformation I'm using is an adjusted version of PDF - Idiom FO Plugin.

Thanks for your help

Susanne

Re: DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Wed Mar 17, 2010 3:08 pm
by Radu
Hi Susanne,

Let's try something else:
Edit the DITA Map to PDF scenario, in the "Advanced" tab press the "Libraries" button.
Uncheck the Allow Oxygen to add... button.

A list of libraries should appear.
Can you search for the dost.jar reference?
If there are more than one, check for the one closest to the top of the list.
The icu4j.jar should be copied in the same directory as the dost.jar referenced in the class path.

Regards,
Radu

Re: DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Wed Mar 17, 2010 3:28 pm
by susannecm
Hi Radu,

that's it - the list of libraries contains one instance of dost.jar. The entry reads as follows: ${frameworks}/dita/DITA-OT/lib/dost.jar - the icu4j.jar file in that directory is actually found during the transformation.

Why is this different in my installation?

Regards

Susanne

Re: DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Wed Mar 17, 2010 4:26 pm
by Radu
Hi Susanne,
susannecm wrote:the icu4j.jar file in that directory is actually found during the transformation.
I do not understand, is it working now?
The dost.jar tries to find the icu4j.jar in same directory from where is was loaded.

Regards,
Radu

Re: DITA PDF2 - How to integrate icu4j-4_0.jar

Posted: Wed Mar 17, 2010 8:02 pm
by susannecm
Hi Radu,

yes, it is working, thank you.

Susanne