1******************************************************************************** 2* Copyright (C) 2008, International Business Machines Corporation * 3* and others. All Rights Reserved. * 4* * 5* 6/26/08 - Created by Brian Rower - heavy copying from ICU4J readme & others * 6* * 7******************************************************************************** 8 9Procedures for building ICU4J data from ICU4C data on a Unix system: 10 11 121. Download and build ICU4C. For more instructions on downloading and building 13 ICU4C, see the ICU4C readme at: 14 http://source.icu-project.org/repos/icu/icu/tags/release-3-8/readme.html#HowToBuild 15 162. In your shell, navigate to $icu4c_root/source/tools/genrb. $icu4c_root is 17 the root directory of ICU4C source package. 18 193. Create a new file named "Makefile.local" in this directory. In this file 20 set the ICU4J_HOME variable to be the root path of ICU4J. 21 Ex: ICU4J_HOME=/home/srl/icu4j 22 234. If there are spaces in your Java bin directory path (which is especially 24 common using cygwin) 25 (EX: /cygdrive/c/Program Files/Java/jdk1.5.0_15/bin), you may need to 26 set GENDTJAR_JARHOME in Makefile.local. On a standard Unix based system, 27 with the Java bin directory in your PATH, this step is not required. 28 29 You can set GENDTJAR_JARHOME by hard coding the path to the Java 30 bin directory. 31 32 For example, on Cygwinc (notice the backslash used for the space): 33 GENDTJAR_JARHOME=/cygdrive/c/Program\ Files/Java/jdk1.5.0_15/bin 34 355. In this same directory $icu4c_root/source/tools/genrb, 36 run the command 'make build-icu4j' 37 386. Build the resources target of the ICU4J ant build to unpack the jar files 39 with the following commands: 40 cd $icu4j_root 41 ant resources 42 43******************************************************************************** 44 45If the above procedure fails to work, you may attempt to use the 46old procedure which uses less automation & path "guessing": 47 481. Download and build ICU4C. For more instructions on downloading and building 49 ICU4C, see the ICU4C readme at: 50 http://source.icu-project.org/repos/icu/icu/tags/release-3-8/readme.html#HowToBuild 51 522. Change directory to $icu4c_root/source/tools/genrb. $icu4c_root is the root 53 directory of ICU4C source package. 54 553. Run gendtjar.pl from that directory itself with the command: 56 ./gendtjar.pl --icu-root=$icu4c_root --jar=$jdk_home/bin 57 --icu4j-root=$icu4j_root 58 59 e.g. 60 ./gendtjar.pl --icu-root=$HOME/icu4c --jar=/usr/local/bin/java/bin/ --icu4j-root=$HOME/icu4j 61 62 Execution of gendtjar.pl script will create the required jar files in 63 $icu4c_root/source/tools/genrb/temp and then copy them to their 64 final locations in the ICU4J structure: 65 $icu4j_root/src/com/ibm/icu/impl/data 66 and 67 $icu4j_root/src/com/ibm/icu/dev/data. 68 694. Build resources target of ant to unpack the jar files 70 with the following commands: 71 72 cd $icu4j_root 73 ant resources 74 75Note: if gendtjar.pl does not work, the --verbose option can help in 76 debugging why it went wrong. 77 78********************************************************************************