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

Here should go questions about transforming XML with XSLT and FOP.
gpchoc
Posts: 3
Joined: Fri Dec 12, 2008 11:46 pm

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

Post 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
Radu
Posts: 9053
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
gpchoc
Posts: 3
Joined: Fri Dec 12, 2008 11:46 pm

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

Post 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
Radu
Posts: 9053
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
gpchoc
Posts: 3
Joined: Fri Dec 12, 2008 11:46 pm

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

Post by gpchoc »

Hello Radu,
now, the process runs without this message :D
Thank you
Joe
susannecm
Posts: 109
Joined: Wed Mar 17, 2010 1:04 pm

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

Post 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
Radu
Posts: 9053
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
susannecm
Posts: 109
Joined: Wed Mar 17, 2010 1:04 pm

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

Post 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
Radu
Posts: 9053
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
susannecm
Posts: 109
Joined: Wed Mar 17, 2010 1:04 pm

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

Post 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
Radu
Posts: 9053
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
susannecm
Posts: 109
Joined: Wed Mar 17, 2010 1:04 pm

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

Post by susannecm »

Hi Radu,

yes, it is working, thank you.

Susanne
Post Reply