Home | History | Annotate | Download | only in data
      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 
      9 Procedures for building ICU4J data from ICU4C data on a Unix system:
     10 
     11 
     12 1. 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 
     16 2. In your shell, navigate to $icu4c_root/source/tools/genrb. $icu4c_root is 
     17 	the root directory of ICU4C source package.
     18 
     19 3. 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 
     23 4. 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 	
     35 5. In this same directory $icu4c_root/source/tools/genrb, 
     36 	run the command 'make build-icu4j'
     37 
     38 6. 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 
     45 If the above procedure fails to work, you may attempt to use the 
     46 old procedure which uses less automation & path "guessing":
     47 
     48 1. 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 
     52 2. Change directory to $icu4c_root/source/tools/genrb. $icu4c_root is the root 
     53 	directory of ICU4C source package.
     54 
     55 3. 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 
     69 4. Build resources target of ant to unpack the jar files 
     70 	with the following commands:
     71         
     72 	cd $icu4j_root
     73 	ant resources
     74 
     75 Note: if gendtjar.pl does not work, the --verbose option can help in 
     76 	debugging why it went wrong.
     77 
     78 ********************************************************************************