2012-11-02 03:57:21 +00:00
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
2000-03-15 21:37:48 +00:00
< html >
< head >
2007-10-09 08:43:20 +00:00
< meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" >
2004-11-09 23:35:01 +00:00
< meta http-equiv = "Content-Style-Type" content = "text/css2" >
< title > ReadMe for ICU4J< / title >
2016-07-01 17:12:44 +00:00
< meta name = "COPYRIGHT" content = "© 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html#License" >
2005-02-18 03:21:02 +00:00
< style type = "text/css" >
2016-09-29 19:51:52 +00:00
h2.doc { background: #CCCCFF }
h3.doc { text-decoration: underline }
2004-11-09 23:35:01 +00:00
< / style >
2000-03-15 21:37:48 +00:00
< / head >
2004-11-09 23:35:01 +00:00
< body style = "background-color: rgb(255, 255, 255);" lang = "EN-US"
link="#0000ff" vlink="#800080">
2014-02-26 20:45:41 +00:00
< h1 > International Components for Unicode for Java (ICU4J)< / h1 >
2020-02-12 21:48:29 +00:00
< h2 > Read Me for ICU4J 66.1< / h2 >
2020-03-02 21:04:49 +00:00
(Last Update: 2020-Mar-02)
2004-02-27 20:06:52 +00:00
< hr size = "2" width = "100%" >
2008-05-28 19:46:06 +00:00
2014-03-18 14:59:59 +00:00
< p >
2020-03-02 21:04:49 +00:00
< b > Note:< / b > This is major release of ICU4J. It contains bug fixes and adds implementations
of inherited API and introduces new API or functionality.
2020-02-12 21:48:29 +00:00
<!-- <b>Note:</b> This is a preview release of ICU4J 66.
2019-11-28 00:14:54 +00:00
The contents of this document may not reflect the recent changes done
2020-02-12 21:48:29 +00:00
for ICU 66 development. It is not recommended for production use. -->
2019-10-09 18:55:08 +00:00
<!-- <b>Note:</b> This is a development milestone of ICU4J 66.
2013-07-23 17:40:26 +00:00
The contents of this document may not reflect the recent changes done
2019-10-09 18:55:08 +00:00
for ICU 66 development. It is not recommended for production use. -->
2020-03-02 21:04:49 +00:00
<!-- <b>Note:</b> This is a release candidate of ICU4J 66.
2015-06-29 04:12:07 +00:00
The contents of this document may not reflect the recent changes done
2019-10-09 18:55:08 +00:00
for ICU 66 development. This release candidate is intended for those
wishing to verify ICU 66 integration before final release. It is not
2020-03-02 21:04:49 +00:00
recommended for production use. -->
2016-07-01 17:12:44 +00:00
< / p >
2004-11-09 23:35:01 +00:00
< p > For the most recent release, see the < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/download/"> ICU4J
2004-11-09 23:35:01 +00:00
download site< / a > . < / p >
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > Contents< / h2 >
2000-04-14 00:21:00 +00:00
< ul type = "disc" >
2004-02-27 20:06:52 +00:00
< li > < a href = "#introduction" > Introduction to ICU4J< / a > < / li >
2010-03-15 19:10:22 +00:00
< li > < a href = "#changes" > Changes In This Release< / a > < / li >
2001-06-13 01:09:07 +00:00
< li > < a href = "#license" > License Information< / a > < / li >
2000-04-14 00:21:00 +00:00
< li > < a href = "#PlatformDependencies" > Platform Dependencies< / a > < / li >
2001-11-30 20:48:48 +00:00
< li > < a href = "#download" > How to Download ICU4J< / a > < / li >
2001-11-30 21:44:27 +00:00
< li > < a href = "#WhatContain" > The Structure and Contents of ICU4J< / a > < / li >
2001-12-01 01:01:37 +00:00
< li > < a href = "#API" > Where to Get Documentation< / a > < / li >
2000-04-14 00:21:00 +00:00
< li > < a href = "#HowToInstallJavac" > How to Install and Build< / a > < / li >
2003-06-11 23:15:13 +00:00
< li > < a href = "#HowToModularize" > How to modularize ICU4J< / a > < / li >
2001-12-01 01:01:37 +00:00
< li > < a href = "#tryingout" > Trying Out ICU4J< / a > < / li >
2002-08-15 17:39:50 +00:00
< li > < a href = "#resources" > ICU4J Resource Information< / a > < / li >
2008-06-30 18:08:59 +00:00
< li > < a href = "#timezone" > About ICU4J Time Zone< / a > < / li >
2000-04-14 00:21:00 +00:00
< li > < a href = "#WhereToFindMore" > Where to Find More Information< / a > < / li >
2004-11-09 23:35:01 +00:00
< li > < a href = "#SubmittingComments" > Submitting Comments, Requesting
Features and Reporting Bugs< / a > < / li >
2000-04-14 00:21:00 +00:00
< / ul >
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "introduction" > < / a > Introduction to ICU4J< / h2 >
2004-11-09 23:35:01 +00:00
< p > The International Components for Unicode (ICU) library provides
robust and
full-featured Unicode services on a wide variety of platforms. ICU
supports the
2004-06-09 03:48:30 +00:00
most current version of the Unicode standard, including support for
supplementary characters (needed for GB 18030 repertoire support).< / p >
2004-11-09 23:35:01 +00:00
< p > Java provides a strong foundation for global programs, and IBM and
the
2004-06-09 03:48:30 +00:00
ICU team played a key role in providing globalization technology to
Java. But because of its long release schedule, Java cannot always keep
up with evolving standards. The ICU team continues to extend Java's
2004-11-09 23:35:01 +00:00
Unicode and internationalization support, focusing on improving
performance,
keeping current with the Unicode standard, and providing richer APIs,
while
2004-06-09 03:48:30 +00:00
remaining as compatible as possible with the original Java text and
internationalization API design.< / p >
2007-08-30 23:51:41 +00:00
< p > ICU4J is an add-on to the regular JRE that provides:
2004-11-09 23:35:01 +00:00
< / p >
2004-06-09 03:48:30 +00:00
< ul >
2004-11-09 23:35:01 +00:00
< li > < a
2007-10-09 08:43:20 +00:00
href="http://www.icu-project.org/userguide/Collate_Intro.html">< b > Collation< / b > < / a >
2004-11-09 23:35:01 +00:00
– rule-based, up-to-date Unicode Collation Algorithm (UCA) sorting order< br >
For fast multilingual string comparison; faster
and more complete than
2007-08-30 23:51:41 +00:00
the J2SE implementation< / li >
2007-10-09 08:43:20 +00:00
< li > < a href = "http://www.icu-project.org/userguide/charsetDetection.html" > < b > Charset
2005-07-26 21:44:58 +00:00
Detection< / b > < / a > – Recognition of various single and multibyte charsets< br >
Useful for recognizing untagged text data< / li >
2004-11-09 23:35:01 +00:00
< li > < a
2007-10-09 08:43:20 +00:00
href="http://www.icu-project.org/userguide/unicodeSet.html">< b > UnicodeSet< / b > < / a >
2004-11-09 23:35:01 +00:00
– standard set operations optimized for sets of Unicode characters< br >
UnicodeSets can be built from string patterns
using any Unicode properties.< / li >
2007-10-09 08:43:20 +00:00
< li > < a href = "http://www.icu-project.org/userguide/Transform.html" > < b > Transforms< / b > < / a >
2004-11-09 23:35:01 +00:00
– a flexible mechanism for Unicode text conversions< br >
Including Full/Halfwidth conversions,
Normalization, Case conversions, Hex
2004-06-09 03:48:30 +00:00
conversions, and transliterations between scripts (50+ pairs)< / li >
2004-11-09 23:35:01 +00:00
< li > < a
2007-10-09 08:43:20 +00:00
href="http://www.icu-project.org/userguide/normalization.html">< b > Unicode
2004-11-09 23:35:01 +00:00
Normalization< / b > < / a > – NFC, NFD, NFKD, NFKC< br >
For canonical text representations, needed for
XML and the net< / li >
< li > < a
2007-10-09 08:43:20 +00:00
href="http://www.icu-project.org/userguide/dateCalendar.html">< b > International
2007-08-04 02:07:57 +00:00
Calendars< / b > < / a > – Arabic, Buddhist, Chinese, Hebrew, Japanese, Ethiopic, Islamic, Coptic and other calendars< br >
2004-11-09 23:35:01 +00:00
Required for correct presentation of dates in
certain countries< / li >
< li > < a
2017-04-11 16:26:57 +00:00
href="http://www.icu-project.org/userguide/formatNumbers.html">< b > Date
Format
Enhancements< / b > < / a > – Date/time pattern generator, Relative date formatting, etc.< br >
Enhancements to the normal Java date
formatting.< / li >
< li > < a
2007-10-09 08:43:20 +00:00
href="http://www.icu-project.org/userguide/formatNumbers.html">< b > Number
2004-11-09 23:35:01 +00:00
Format
2016-09-29 19:51:52 +00:00
Enhancements< / b > < / a > – Scientific Notation, Spelled-out, Compact decimal format, etc.< br >
2004-11-09 23:35:01 +00:00
Enhancements to the normal Java number
formatting. The spell-out format is
2004-06-09 03:48:30 +00:00
used for checks and similar documents< / li >
2004-11-09 23:35:01 +00:00
< li > < a
2007-10-09 08:43:20 +00:00
href="http://www.icu-project.org/userguide/boundaryAnalysis.html">< b > Enhanced
2016-09-29 19:51:52 +00:00
Word-Break Detection< / b > < / a > – Rule-based, supports Thai, Khmer, Chinese, etc.< br >
2004-06-09 03:48:30 +00:00
Required for correct support of Thai< / li >
2004-11-09 23:35:01 +00:00
< li > < a
2007-10-09 08:43:20 +00:00
href="http://www.icu-project.org/userguide/compression.html">< b > Unicode
2004-11-09 23:35:01 +00:00
Text
Compression< / b > < / a > – Standard compression of Unicode text< br >
Suitable for large numbers of small fields,
where LZW and similar schemes
2004-06-09 03:48:30 +00:00
do not apply< / li >
2006-09-29 21:03:27 +00:00
< li > < a
2007-10-09 08:43:20 +00:00
href="http://www.icu-project.org/userguide/conversion.html">< b > Charset Conversion< / b > < / a > – Conversion to and from different charsets.< br >
2007-08-30 23:51:41 +00:00
Plugs into Java CharsetProvider Service Provider Interface (SPI)< / li >
2006-09-29 21:03:27 +00:00
2004-06-09 03:48:30 +00:00
< / ul >
< blockquote >
2010-12-01 17:15:46 +00:00
< p > < b > Note:< / b > We continue to provide assistance to Java, and in some
2004-06-09 03:48:30 +00:00
cases, ICU4J support has been rolled into a later release of Java. For
2010-12-01 17:15:46 +00:00
example, BCP47 language tag support including Unicode locale extensions
is now in Java 7. However, the most current and complete version is always
found in ICU4J.< / p >
2004-06-09 03:48:30 +00:00
< / blockquote >
2004-11-09 23:35:01 +00:00
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "changes" > < / a > Changes In This Release< / h2 >
2012-10-03 23:39:35 +00:00
2019-11-28 00:14:54 +00:00
< p > This release updates to Unicode 13 beta, CLDR 36.1, and includes some bug fixes.
This is a low-impact release with no other significant feature additions or implementation changes.< / p >
2019-10-09 18:55:08 +00:00
< p > See the < a href = "http://site.icu-project.org/download/66" > ICU 66 download page< / a >
2019-11-28 00:14:54 +00:00
for more informantion about changes in this release.< / p >
2017-04-11 16:26:57 +00:00
< p > The list of API changes since the previous ICU4J release is available
2018-10-10 17:03:05 +00:00
< a href = "APIChangeReport.html" > here< / a > .< / p >
2016-09-29 19:51:52 +00:00
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "license" > < / a > License Information< / h2 >
2001-06-13 01:09:07 +00:00
< p >
2016-07-01 17:12:44 +00:00
The ICU projects (ICU4C and ICU4J) are hosted by the
< a href = "http://www.unicode.org/" > Unicode Consortium< / a > . The ICU binary
and source files are distributed under the
< a href = "http://www.unicode.org/copyright.html#License" > UNICODE DATA FILES
AND SOFTWARE LICENSE< / a > . The full copy of the license and third party
2018-09-19 18:36:48 +00:00
software licenses are available in < a href = "./main/shared/licenses/LICENSE" > LICENSE< / a >
2016-07-01 17:12:44 +00:00
file included in this package.
2001-06-13 01:09:07 +00:00
< / p >
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "PlatformDependencies" > < / a > Platform Dependencies< / h2 >
2010-03-05 00:22:07 +00:00
< p >
2019-10-09 18:55:08 +00:00
The minimum Java runtime version supported by ICU4J 66 is version 7. Java runtime version 6 is not supported.
2019-02-23 01:29:48 +00:00
< / p >
< p >
ICU4J since version 63 depend on J2SE 7 functionality. Therefore, ICU4J only runs on
2019-10-09 18:55:08 +00:00
JRE version 7 or later. ICU4J 66 is tested on JRE 7, 8, 9, 10 and 11.
2019-02-23 01:29:48 +00:00
< / p >
2007-08-30 23:51:41 +00:00
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "download" > < / a > How to Download ICU4J< / h2 >
2016-09-29 19:51:52 +00:00
< p > There are a few different ways to download the ICU4J releases.
2004-11-09 23:35:01 +00:00
< / p >
2000-04-14 00:21:00 +00:00
< ul type = "disc" >
2008-06-30 18:08:59 +00:00
< li > < b > Official Release:< / b > < br >
2004-11-09 23:35:01 +00:00
If you want to use ICU4J (as opposed to developing it), your best bet
2008-06-30 18:08:59 +00:00
is to download an official, packaged version of the ICU4J library files.
These versions are tested more thoroughly than day-to-day development
builds, and they are packaged in jar files for convenient download.
2016-09-29 19:51:52 +00:00
< ul >
< li > < a href = "http://www.icu-project.org/download/" > ICU Download page< / a > .< / li >
2017-10-30 21:54:17 +00:00
< li > Maven repository:
2016-09-29 19:51:52 +00:00
< pre >
< dependency>
< groupId> com.ibm.icu< /groupId>
< artifactId> icu4j< /artifactId>
2020-02-12 21:48:29 +00:00
< version> 66.1< /version>
2016-09-29 19:51:52 +00:00
< /dependency>
2017-10-04 21:30:25 +00:00
< dependency>
< groupId> com.ibm.icu< /groupId>
< artifactId> icu4j-charset< /artifactId>
2020-02-12 21:48:29 +00:00
< version> 66.1< /version>
2017-10-04 21:30:25 +00:00
< /dependency>
< dependency>
< groupId> com.ibm.icu< /groupId>
< artifactId> icu4j-localespi< /artifactId>
2020-02-12 21:48:29 +00:00
< version> 66.1< /version>
2017-10-04 21:30:25 +00:00
< /dependency>
2016-09-29 19:51:52 +00:00
< / pre >
< / ul >
< / ul >
2000-04-14 00:21:00 +00:00
< ul type = "disc" >
2018-09-19 18:36:48 +00:00
< li > < b > GitHub Source Repository:< / b > < br >
2004-11-09 23:35:01 +00:00
If you are interested in developing features, patches, or bug fixes for
ICU4J, you should probably be working with the latest version of the
2018-09-19 18:36:48 +00:00
ICU4J source code. You will need to clone and checkout the code from our GitHub
2004-11-09 23:35:01 +00:00
repository to ensure that you have the most recent version of all of
2005-02-18 00:19:33 +00:00
the files. There are several ways to do this. Please follow the
directions that are contained on the < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/repository/">Source
2005-02-18 00:19:33 +00:00
Repository page< / a > for details.
2000-04-14 00:21:00 +00:00
< / li >
< / ul >
2004-11-09 23:35:01 +00:00
< p > For more details on how to download ICU4J directly from the web
2010-03-15 19:10:22 +00:00
site, please see the ICU download page at < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/download/">http://www.icu-project.org/download/< / a >
2000-04-14 00:21:00 +00:00
< / p >
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "WhatContain" > < / a > The Structure and Contents of
ICU4J< / h2 >
2010-03-05 00:22:07 +00:00
< p > Below, all directory pathes are relative to the directory where the
ICU4J source archive is extracted.
< / p >
2002-08-15 17:39:50 +00:00
< p > < b > Information and build files:< / b > < / p >
2010-03-05 00:22:07 +00:00
< table border = "1" >
< tr >
< th > Path< / th >
< th > Description< / th >
< / tr >
< tr >
< td > readme.html< / td >
2010-03-15 19:10:22 +00:00
< td > A description of ICU4J (International Components for Unicode for Java)< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > build.html< / td >
< td > The main Ant build file for ICU4J. See < a href = "#HowToInstallJavac" > How to Install
2010-03-15 19:10:22 +00:00
and Build< / a > for more information< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
2017-03-31 15:24:11 +00:00
< td > main/shared/licenses/LICENSE< / td >
< td > ICU license< / td >
2010-03-05 00:22:07 +00:00
< / tr >
2000-04-14 00:21:00 +00:00
< / table >
2010-03-05 00:22:07 +00:00
< p > < b > ICU4J runtime class files:< / b > < / p >
< table border = "1" >
< tr >
< th > Path< / th >
2010-03-08 18:41:59 +00:00
< th > Sub-component Name< / th >
2010-03-05 00:22:07 +00:00
< th > Build Dependencies< / th >
< th > Public API Packages< / th >
< th > Description< / th >
< / tr >
< tr >
< td > main/classes/charset< / td >
< td > icu4j-charset< / td >
< td > icu4j-core< / td >
< td > com.ibm.icu.charset< / td >
< td > Implementation of < code > java.nio.charset.spi.CharsetProvider< / code > .
2011-03-14 21:06:57 +00:00
This sub-component is shipped as icu4j-charset.jar along with
2010-03-05 00:22:07 +00:00
ICU charset converter data files.< / td >
< / tr >
< tr >
< td > main/classes/collate< / td >
< td > icu4j-collate< / td >
< td > icu4j-core< / td >
< td > com.ibm.icu.text< br >
com.ibm.icu.util< / td >
2010-03-08 18:41:59 +00:00
< td > Collator APIs and implementation. Also includes some public API classes
that depend on Collator.
This sub-component is packaged as a part of icu4j.jar.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/classes/core< / td >
< td > icu4j-core< / td >
< td > n/a< / td >
< td > com.ibm.icu.lang< br >
com.ibm.icu.math< br >
com.ibm.icu.text< br >
com.ibm.icu.util< / td >
2010-03-08 18:41:59 +00:00
< td > ICU core API classes and implementation.
This sub-component is packaged as a part of icu4j.jar.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/classes/currdata< / td >
< td > icu4j-currdata< / td >
< td > icu4j-core< / td >
< td > n/a< / td >
2010-03-08 18:41:59 +00:00
< td > No public API classes. Provides access to currency display data.
This sub-component is packaged as a part of icu4j.jar.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/classes/langdata< / td >
< td > icu4j-langdata< / td >
< td > icu4j-core< / td >
< td > n/a< / td >
2010-03-08 18:41:59 +00:00
< td > No public API classes. Provides access to language display data.
This sub-component is packaged as a part of icu4j.jar.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/classes/localespi< / td >
2012-11-02 03:57:21 +00:00
< td > icu4j-localespi< / td >
2010-03-05 00:22:07 +00:00
< td > icu4j-core< br >
icu4j-collate< br >
< / td >
< td > n/a< / td >
2010-03-08 18:41:59 +00:00
< td > Implementation of various locale-sensitive service providers defined
2010-03-05 00:22:07 +00:00
in < code > java.text.spi< / code > and < code > java.util.spi< / code > in J2SE 6.0
or later Java releases.
2010-03-08 18:41:59 +00:00
This sub-component is shipped as icu4j-localespi.jar.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/classes/regiondata< / td >
< td > icu4j-regiondata< / td >
< td > icu4j-core< / td >
< td > n/a< / td >
2010-03-08 18:41:59 +00:00
< td > No public API classes. Provides access to region display data.
This sub-component is packaged as a part of icu4j.jar.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/classes/translit< / td >
< td > icu4j-translit< / td >
< td > icu4j-core< / td >
< td > com.ibm.icu.text< / td >
2010-03-08 18:41:59 +00:00
< td > Transliterator APIs and implementation.
This sub-component is packaged as a part of icu4j.jar.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
2000-04-14 00:21:00 +00:00
< / table >
2010-03-05 00:22:07 +00:00
< p > < b > ICU4J unit test files:< / b > < / p >
< table border = "1" >
< tr >
< th > Path< / th >
2010-03-08 18:41:59 +00:00
< th > Sub-component Name< / th >
2010-03-05 00:22:07 +00:00
< th > Runtime Dependencies< / th >
< th > Description< / th >
< / tr >
< tr >
< td > main/tests/charset< / td >
< td > icu4j-charset-tests< / td >
< td > icu4j-charset< br >
icu4j-core< br >
icu4j-test-framework< / td >
2010-03-08 18:41:59 +00:00
< td > Test suite for charset sub-component.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/tests/collate< / td >
< td > icu4j-collate-tests< / td >
< td > icu4j-collate< br >
icu4j-core< br >
icu4j-test-framework< / td >
2010-03-08 18:41:59 +00:00
< td > Test suite for collate sub-component.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/tests/core< / td >
< td > icu4j-core-tests< / td >
< td > icu4j-core< br >
icu4j-currdata< br >
icu4j-langdata< br >
icu4j-regiondata< br >
icu4j-test-framework< / td >
2010-03-08 18:41:59 +00:00
< td > Test suite for core sub-component.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/tests/framework< / td >
< td > icu4j-test-framework< / td >
< td > icu4j-core< / td >
< td > Common ICU4J unit test framework and utilities.< / td >
< / tr >
< tr >
< td > main/tests/localespi< / td >
< td > icu4j-localespi-tests< / td >
< td > icu4j-core< br >
icu4j-collate< br >
icu4j-currdata< br >
icu4j-langdata< br >
icu4j-localespi< br >
icu4j-regiondata< br >
icu4j-test-framework< / td >
2010-03-08 18:41:59 +00:00
< td > Test suite for localespi sub-component.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/tests/packaging< / td >
< td > icu4j-packaging-tests< / td >
< td > icu4j-core< br >
icu4j-test-framework< / td >
2010-03-08 18:41:59 +00:00
< td > Test suite for sub-component packaging.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/tests/translit< / td >
< td > icu4j-translit-tests< / td >
< td > icu4j-core< br >
icu4j-translit
icu4j-test-framework< / td >
2010-03-08 18:41:59 +00:00
< td > Test suite for translit sub-component.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
2000-04-14 00:21:00 +00:00
< / table >
2010-03-05 00:22:07 +00:00
< p > < b > Others:< / b > < / p >
< table border = "1" >
< tr >
2012-11-02 03:57:21 +00:00
< th > Path< / th >
< th > Description< / th >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > main/shared< / td >
2010-03-08 18:41:59 +00:00
< td > Files shared by ICU4J sub-components under the < code > main< / code > directory including:
2010-03-05 00:22:07 +00:00
< ul >
2011-05-12 03:00:12 +00:00
< li > ICU4J runtime data archive (icudata.jar).< / li >
< li > ICU4J unit test data archive (testdata.jar).< / li >
2010-03-05 00:22:07 +00:00
< li > Shared Ant build script and configuration files.< / li >
< li > License files.< / li >
< / ul >
< / td >
< / tr >
< tr >
< td > demos< / td >
< td > ICU4J demo programs.< / td >
< / tr >
< tr >
< td > perf-tests< / td >
2010-03-08 18:41:59 +00:00
< td > ICU4J performance test files.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< td > tools< / td >
< td > ICU4J tools including:
< ul >
< li > Custom JavaDoc taglets used for generating ICU4J API references.< / li >
< li > API report tool and data.< / li >
< li > Other independent utilities used for ICU4J development.< / li >
< / ul >
< / td >
< / tr >
2017-10-30 21:54:17 +00:00
< tr >
< td > lib< / td >
< td > Folder used for downloading depedency libraries.< br >
< b > Note:< / b > ICU4J runtime libraries do not depend on any external libraries other
than JDK. These dependencies are for testing (such as JUnit).< / td >
< / tr >
2002-08-16 15:51:35 +00:00
< / table >
2010-03-05 00:22:07 +00:00
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "API" > < / a > Where to get Documentation< / h2 >
2007-08-04 02:07:57 +00:00
< p > The < a href = "http://www.icu-project.org/userguide/" > ICU user's
2004-11-09 23:35:01 +00:00
guide< / a > contains lots of general information about ICU, in its C,
C++, and Java incarnations.< / p >
< p > The complete API documentation for ICU4J (javadoc) is available on
the ICU4J web site, and can be built from the sources:
< / p >
2000-04-14 00:21:00 +00:00
< ul >
2007-08-04 02:07:57 +00:00
< li > < a href = "http://www.icu-project.org/apiref/icu4j/" > Index
2004-11-09 23:35:01 +00:00
to all ICU4J API< / a > < / li >
2007-08-04 02:07:57 +00:00
< li > < a href = "http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/CharsetDetector.html" > Charset Detector< / a > – Detection of charset from a byte stream< / li >
2007-10-09 08:43:20 +00:00
< li > International Calendars –
2004-11-09 23:35:01 +00:00
< a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/BuddhistCalendar.html">Buddhist< / a > ,
2004-11-09 23:35:01 +00:00
< a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/ChineseCalendar.html">Chinese< / a > ,
2005-07-26 21:44:58 +00:00
< a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/CopticCalendar.html">Coptic< / a > ,
2005-07-26 21:44:58 +00:00
< a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/EthiopicCalendar.html">Ethiopic< / a > ,
2005-07-26 21:44:58 +00:00
< a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/GregorianCalendar.html">Gregorian< / a > ,
2005-07-26 21:44:58 +00:00
< a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/HebrewCalendar.html">Hebrew< / a > ,
2004-11-09 23:35:01 +00:00
< a
2009-05-01 04:20:46 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/IndianCalendar.html">Indian< / a > ,
< a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/IslamicCalendar.html">Islamic< / a > ,
2005-07-26 21:44:58 +00:00
< a
2013-03-05 04:48:13 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/JapaneseCalendar.html">Japanese< / a > ,
Persian, Dangi.< / li >
< li > Time Zone Enhancements –
< a href = "http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/BasicTimeZone.html" > Time zone transition and rule detection< / a > ,
< a href = "http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/VTimeZone.html" > iCalendar VTIMEZONE formatting and parsing< / a > ,
< a href = "http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/RuleBasedTimeZone.html" > Custom time zones constructed by user defined rules< / a > .
< li > Date Format Enhancements – < a href = "http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/DateTimePatternGenerator.html" > Date/Time Pattern Generator< / a > ,
< a href = "http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/DateIntervalFormat.html" > Date Interval Format< / a > ,
< a href = "http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/DurationFormat.html" > Duration Format< / a > .
2004-11-09 23:35:01 +00:00
< li > < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/Normalizer.html">Unicode
2004-11-09 23:35:01 +00:00
Normalization< / a > – Canonical text representation for W3C.< / li >
< li > < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/NumberFormat.html">Number
2004-11-09 23:35:01 +00:00
Format Enhancements< / a > – Scientific Notation, Spelled out.< / li >
< li > < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/BreakIterator.html">Enhanced
2004-11-09 23:35:01 +00:00
word-break detection< / a > – Rule-based, supports Thai< / li >
< li > < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/Transliterator.html">Transliteration< / a >
2007-08-30 23:51:41 +00:00
– A general framework for converting text from one format to another,
2004-11-09 23:35:01 +00:00
e.g. Cyrillic to Latin, or Hex to Unicode. < / li >
< li > Unicode Text < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/UnicodeCompressor.html">Compression< / a >
2004-11-09 23:35:01 +00:00
& < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/UnicodeDecompressor.html">Decompression< / a >
2004-11-09 23:35:01 +00:00
– 2:1 compression on English Unicode text.< / li >
2013-03-05 04:48:13 +00:00
< li > Collation – < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/RuleBasedCollator.html">Rule-based
2004-11-09 23:35:01 +00:00
sorting< / a > , < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/StringSearch.html">Efficient
2013-03-05 04:48:13 +00:00
multi-lingual searching< / a > ,
< a href = "http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/AlphabeticIndex.html" > Alphabetic indexing< / a > < / li >
2000-04-14 00:21:00 +00:00
< / ul >
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "HowToInstallJavac" > < / a > How to Install and Build< / h2 >
2010-03-05 00:22:07 +00:00
< p >
2018-09-19 18:36:48 +00:00
To install ICU4J, simply place the pre-built jar file < strong > icu4j.jar< / strong >
2010-03-08 18:41:59 +00:00
on your Java CLASSPATH. If you need Charset API support please also place
2011-03-14 21:06:57 +00:00
< strong > icu4j-charset.jar< / strong > on your class path along with < strong > icu4j.jar< / strong > .
2010-03-05 00:22:07 +00:00
< / p >
< p >
2018-09-19 18:36:48 +00:00
To build ICU4J, you will need JDK 7 or later (JDK 8 is the reference environment for this release)
2016-09-29 19:51:52 +00:00
and the Apache Ant version 1.9 or later. It's recommended to install both the JDK and Ant
2010-03-08 18:41:59 +00:00
somewhere < em > outside< / em > the ICU4J directory. For example, on Linux you might install
these in < code > /usr/local< / code > .< / p >
2004-11-23 20:09:14 +00:00
< ul >
2016-09-29 19:51:52 +00:00
< li > Install JDK 8.< / li >
< li > Install the < a href = "http://ant.apache.org/" > < strong > Apache Ant< / strong > < / a >
1.9 or later.
< li > Set environment variables JAVA_HOME, ANT_HOME and PATH, for example:
2007-08-30 23:51:41 +00:00
< pre >
2016-09-29 19:51:52 +00:00
set JAVA_HOME=C:\jdk1.8.0
set ANT_HOME=C:\apache-ant
2012-11-02 03:57:21 +00:00
set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%PATH%< / pre >
2016-09-29 19:51:52 +00:00
< / pre >
2000-09-21 21:49:12 +00:00
< / li >
2000-04-14 00:21:00 +00:00
< / ul >
2016-09-29 19:51:52 +00:00
< p > Once the JDK and Ant are configured, run the desired target defined in
< strong > build.xml< / strong > . The default target is "jar" which compiles ICU4J library
class files and create ICU4J jar files. For example:< / p >
2000-04-14 00:21:00 +00:00
< blockquote >
2010-03-10 07:52:28 +00:00
< pre > C:\icu4j>ant
2011-05-12 03:00:12 +00:00
Buildfile: C:\icu4j\build.xml
2010-03-05 00:22:07 +00:00
info:
[echo] ----- Build Environment Information -------------------
2016-09-29 19:51:52 +00:00
[echo] Java Home: C:\jdk1.8.0\jre
2018-09-28 17:28:08 +00:00
[echo] Java Version: 1.8.0_181
2016-09-29 19:51:52 +00:00
[echo] Ant Home: C:\apache-ant
2018-09-28 17:28:08 +00:00
[echo] Ant Version: Apache Ant(TM) version 1.10.1 compiled on February 2 2017
2016-09-29 19:51:52 +00:00
[echo] OS: Windows 10
[echo] OS Version: 10.0
2012-11-02 03:57:21 +00:00
[echo] OS Arch: amd64
2010-03-15 19:10:22 +00:00
[echo] Host: ICUDEV
2010-03-05 00:22:07 +00:00
[echo] -------------------------------------------------------
2007-08-30 23:51:41 +00:00
2010-03-05 00:22:07 +00:00
core:
2007-08-30 23:51:41 +00:00
2010-03-05 00:22:07 +00:00
@compile:
2015-03-13 21:52:29 +00:00
[echo] build-local: ../../shared/../../build-local.properties
2010-03-05 00:22:07 +00:00
[echo] --- java compiler arguments ------------------------
[echo] source dir: C:\icu4j\main\classes\core/src
[echo] output dir: C:\icu4j\main\classes\core/out/bin
2016-09-29 19:51:52 +00:00
[echo] bootclasspath:
[echo] classpath:
2018-09-28 17:28:08 +00:00
[echo] source: 1.7
[echo] target: 1.7
2010-03-05 00:22:07 +00:00
[echo] debug: on
2010-12-01 17:15:46 +00:00
[echo] encoding: UTF-8
2016-09-29 19:51:52 +00:00
[echo] compiler arg: -Xlint:all,-deprecation,-dep-ann,-options,-overrides
2010-03-05 00:22:07 +00:00
[echo] ----------------------------------------------------
[mkdir] Created dir: C:\icu4j\main\classes\core\out\bin
2018-09-28 17:28:08 +00:00
[javac] Compiling 470 source files to C:\icu4j\main\classes\core\out\bin
2010-03-05 00:22:07 +00:00
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
2007-08-30 23:51:41 +00:00
2010-03-05 00:22:07 +00:00
compile:
2007-08-30 23:51:41 +00:00
2010-03-05 00:22:07 +00:00
@copy:
2017-10-30 21:54:17 +00:00
[copy] Copying 24 files to C:\icu4j\main\classes\core\out\bin
2007-08-30 23:51:41 +00:00
2015-03-13 21:52:29 +00:00
set-icuconfig-datapath:
2010-03-05 00:22:07 +00:00
copy-data:
2012-11-02 03:57:21 +00:00
[unjar] Expanding: C:\icu4j\main\shared\data\icudata.jar into C:\icu4j\main\
classes\core\out\bin
[unjar] Expanding: C:\icu4j\main\shared\data\icutzdata.jar into C:\icu4j\mai
n\classes\core\out\bin
2007-08-30 23:51:41 +00:00
2010-12-01 17:15:46 +00:00
...
...
...
2007-08-30 23:51:41 +00:00
2018-09-28 17:28:08 +00:00
localespi:
2007-08-30 23:51:41 +00:00
2010-03-10 07:52:28 +00:00
@compile:
2015-03-13 21:52:29 +00:00
[echo] build-local: ../../shared/../../build-local.properties
2010-03-10 07:52:28 +00:00
[echo] --- java compiler arguments ------------------------
[echo] source dir: C:\icu4j\main\classes\localespi/src
[echo] output dir: C:\icu4j\main\classes\localespi/out/bin
2016-09-29 19:51:52 +00:00
[echo] bootclasspath:
2012-11-02 03:57:21 +00:00
[echo] classpath: C:\icu4j\main\classes\core\out\lib\icu4j-core.jar;C:
\icu4j\main\classes\collate\out\lib\icu4j-collate.jar
2018-09-28 17:28:08 +00:00
[echo] source: 1.7
[echo] target: 1.7
2010-03-10 07:52:28 +00:00
[echo] debug: on
2010-12-01 17:15:46 +00:00
[echo] encoding: UTF-8
2012-03-16 06:59:46 +00:00
[echo] compiler arg: -Xlint:all,-deprecation,-dep-ann,-options
2010-03-10 07:52:28 +00:00
[echo] ----------------------------------------------------
[mkdir] Created dir: C:\icu4j\main\classes\localespi\out\bin
[javac] Compiling 22 source files to C:\icu4j\main\classes\localespi\out\bin
2012-11-02 03:57:21 +00:00
2010-03-10 07:52:28 +00:00
compile:
@copy:
2017-10-30 21:54:17 +00:00
[copy] Copying 11 files to C:\icu4j\main\classes\localespi\out\bin
2010-03-10 07:52:28 +00:00
copy:
2007-08-30 23:51:41 +00:00
2010-03-10 07:52:28 +00:00
@jar:
[mkdir] Created dir: C:\icu4j\main\classes\localespi\out\lib
[copy] Copying 1 file to C:\icu4j\main\classes\localespi\out
2012-11-02 03:57:21 +00:00
[jar] Building jar: C:\icu4j\main\classes\localespi\out\lib\icu4j-localesp
i.jar
2010-03-10 07:52:28 +00:00
jar:
2010-12-01 17:15:46 +00:00
@src-jar:
2012-11-02 03:57:21 +00:00
[jar] Building jar: C:\icu4j\main\classes\localespi\out\lib\icu4j-localesp
i-src.jar
2010-12-01 17:15:46 +00:00
src-jar:
2010-03-10 07:52:28 +00:00
build:
jar:
[copy] Copying 1 file to C:\icu4j
[copy] Copying 1 file to C:\icu4j
2007-08-30 23:51:41 +00:00
BUILD SUCCESSFUL
2016-09-29 19:51:52 +00:00
Total time: 30 seconds< / pre >
2000-04-14 00:21:00 +00:00
< / blockquote >
2007-08-30 23:51:41 +00:00
< I > Note: The above output is an example. The numbers are likely to be different with the current version ICU4J.< / I >
2004-11-09 23:35:01 +00:00
< p > The following are some targets that you can provide to < b > ant< / b > .
2004-11-23 20:09:14 +00:00
For more targets run < code > ant -projecthelp< / code > or see the build.xml file.< / p >
2010-03-05 00:22:07 +00:00
< table border = "1" >
2010-03-10 07:52:28 +00:00
< tr >
< th > jar (default)< / th >
< td > Create ICU4J runtime library jar archives (< code > icu4j.jar< / code > ,
2011-03-14 21:06:57 +00:00
< code > icu4j-charset.jar< / code > and < code > icu4j-localespi.jar< / code > )
2010-03-10 07:52:28 +00:00
in the root ICU4J directory.< / td >
< / tr >
2010-03-05 00:22:07 +00:00
< tr >
< th > check< / th >
< td > Build all ICU4J runtime library classes and corresponding unit test cases,
then run the tests.< / td >
< / tr >
< tr >
< th > clean< / th >
< td > Remove all build output files.< / td >
< / tr >
< tr >
< th > main< / th >
2010-03-10 07:52:28 +00:00
< td > Build all ICU4J runtime library sub-components (under the directory
< code > main/classes< / code > ).< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< th > tests< / th >
2010-03-10 07:52:28 +00:00
< td > Build all ICU4J unit test sub-components (under the directory < code > main/tests< / code > )
and their dependencies.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
< th > tools< / th >
< td > Build the tools.< / td >
< / tr >
< tr >
< th > docs< / th >
2010-03-10 07:52:28 +00:00
< td > Run javadoc over the ICU4J runtime library files, generating an HTML documentation
tree in the subdirectory < code > doc< / code > .< / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
2010-03-10 07:52:28 +00:00
< th > jarDocs< / th >
< td > Create ICU4J doc jar archive (< code > icu4jdocs.jar< / code > ) containing API reference
docs in the root ICU4J directory. < / td >
2010-03-05 00:22:07 +00:00
< / tr >
< tr >
2010-03-10 07:52:28 +00:00
< th > jarDemos< / th >
< td > Create ICU4J demo jar archive (< code > icu4jdemos.jar< / code > ) in the root ICU4J
directory.< / td >
2010-03-05 00:22:07 +00:00
< / tr >
2004-11-09 23:35:01 +00:00
< / table >
2010-03-05 00:22:07 +00:00
2004-11-09 23:35:01 +00:00
< p > For more information, read the Ant documentation and the < strong > build.xml< / strong >
file.< / p >
2012-11-02 03:57:21 +00:00
< p > < b > Note:< / b > If you get an OutOfMemoryError when you are running < tt > "ant check"< / tt > ,
2010-03-05 00:22:07 +00:00
you can set the heap size of the jvm by setting the environment variable JVM_OPTIONS
2009-07-01 19:40:39 +00:00
to the appropriate java options.< / p >
2008-06-20 21:21:07 +00:00
2008-06-30 18:08:59 +00:00
< p > < b > Eclipse users:< / b > See the ICU4J site for information on< a
href="http://www.icu-project.org/docs/eclipse_howto/eclipse_howto.html">
how to configure Eclipse< / a > to build and develop ICU4J on Eclipse IDE.< / p >
2014-09-26 23:26:59 +00:00
< p > < b > Note:< / b > To install and configure ICU4J Locale Service Provider, please refer the user guide
2010-12-01 18:46:48 +00:00
page < a href = "http://userguide.icu-project.org/icu4j-locale-service-provider" > ICU4J Locale
Service Provider< / a > .< / p >
2008-06-20 21:21:07 +00:00
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "tryingout" > < / a > Trying Out ICU4J< / h2 >
2001-12-01 01:01:37 +00:00
< p > < strong > Note:< / strong > the demos provided with ICU4J are for the
2004-11-09 23:35:01 +00:00
most part undocumented. This list can show you where to look, but
2010-03-05 00:22:07 +00:00
you'll have to experiment a bit. The demos are < strong > unsupported< / strong >
and may change or disappear without notice.< / p >
< p > The icu4j.jar file contains only the ICU4J runtime library classes, not the
2001-12-01 01:01:37 +00:00
demo classes, so unless you build ICU4J there is little to try out.
2004-11-09 23:35:01 +00:00
< / p >
2016-09-29 19:51:52 +00:00
< h3 class = "doc" > Charset< / h3 >
2010-03-05 00:22:07 +00:00
To try out the < strong > Charset< / strong > package, build < strong > icu4j.jar< / strong > and
2011-03-14 21:06:57 +00:00
< strong > icu4j-charset.jar< / strong > using the 'jar' target.
2006-09-29 21:03:27 +00:00
You can use the charsets by placing these files on your classpath.
2011-03-14 21:06:57 +00:00
< blockquote > < tt > java -cp $icu4j_root/icu4j.jar:$icu4j_root/icu4j-charset.jar < your program> < / tt > < / blockquote >
2016-09-29 19:51:52 +00:00
< h3 class = "doc" > Other demos< / h3 >
2004-11-09 23:35:01 +00:00
< p > The other demo programs are < strong > not supported< / strong > and
2010-03-05 00:22:07 +00:00
exist only to let you experiment with the ICU4J classes. First, build ICU4J using < tt > ant jarDemos< / tt > .
2012-11-02 03:57:21 +00:00
Then launch the demos as below:< / p >
2010-03-05 00:22:07 +00:00
< blockquote > < tt > java -jar $icu4j_root/icu4jdemos.jar< / tt > < / blockquote >
2008-06-20 21:21:07 +00:00
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "resources" > ICU4J Resource Information< / a > < / h2 >
2003-06-11 23:15:13 +00:00
Starting with release 2.1, ICU4J includes its own
2002-08-15 17:39:50 +00:00
resource information
2007-08-30 23:51:41 +00:00
which is completely independent of the JRE resource information. (Note,
ICU4J 2.8 to 3.4, time zone information depends on the underlying JRE).
2008-06-30 18:08:59 +00:00
The ICU4J resource information is equivalent to the information in ICU4C and
2007-08-04 02:07:57 +00:00
many resources are, in fact, the same binary files that ICU4C uses.
2002-08-15 17:39:50 +00:00
< p >
2004-06-15 22:59:13 +00:00
By default the ICU4J distribution includes all of the standard resource
2004-11-09 23:35:01 +00:00
information. It is located under the directory com/ibm/icu/impl/data.
2004-06-15 22:59:13 +00:00
Depending on the service, the data is in different locations and in
2004-11-09 23:35:01 +00:00
different formats. < strong > Note:< / strong > This will continue to change
from release to release, so clients should not depend on the exact
organization
2004-06-15 22:59:13 +00:00
of the data in ICU4J.< / p >
< ul >
2019-10-09 18:55:08 +00:00
< li > The primary < b > locale data< / b > is under the directory < tt > icudt66b< / tt > ,
2010-03-05 00:22:07 +00:00
as a set of < tt > ".res"< / tt > files whose names are the locale identifiers.
Locale naming is documented the < code > com.ibm.icu.util.ULocale< / code >
class, and the use of these names in searching for resources is documented
in < code > com.ibm.icu.util.UResourceBundle< / code > .< / li >
2019-10-09 18:55:08 +00:00
< li > The < b > break iterator data< / b > is under the directory < tt > icudt66b/brkitr< / tt > ,
2014-10-09 15:25:12 +00:00
as a set of < tt > ".res"< / tt > , < tt > ".brk"< / tt > and < tt > ".dict"< / tt > files.< / li >
2019-10-09 18:55:08 +00:00
< li > The < b > collation data< / b > is under the directory < tt > icudt66b/coll< / tt > ,
2010-03-05 00:22:07 +00:00
as a set of < tt > ".res"< / tt > files.< / li >
2019-10-09 18:55:08 +00:00
< li > The < b > currency display name data< / b > is under the directory < tt > icudt66b/curr< / tt > ,
2010-03-05 00:22:07 +00:00
as a set of < tt > ".res"< / tt > files.< / li >
2019-10-09 18:55:08 +00:00
< li > The < b > language display name data< / b > is under the directory < tt > icudt66b/lang< / tt > ,
2010-03-05 00:22:07 +00:00
as a set of < tt > ".res"< / tt > files.< / li >
2014-10-09 15:25:12 +00:00
< li > The < b > rule-based number format data< / b > is under the directory
2019-10-09 18:55:08 +00:00
< tt > icudt66b/rbnf< / tt > , as a set of < tt > ".res"< / tt > files.
2014-10-09 15:25:12 +00:00
2019-10-09 18:55:08 +00:00
< li > The < b > region display name data< / b > is under the directory < tt > icudt66b/region< / tt > ,
2010-03-05 00:22:07 +00:00
as a set of < tt > ".res"< / tt > files.< / li >
2004-11-23 20:09:14 +00:00
< li > The < b > rule-based transliterator data< / b > is under the directory
2019-10-09 18:55:08 +00:00
< tt > icudt66b/translit< / tt > , as a set of < tt > ".res"< / tt > files.< / li >
2010-03-05 00:22:07 +00:00
2019-10-09 18:55:08 +00:00
< li > The < b > measurement unit data< / b > is under the directory < tt > icudt66b/unit< / tt > ,
2014-10-09 15:25:12 +00:00
as a set of < tt > ".res"< / tt > files.< / li >
2010-03-05 00:22:07 +00:00
2014-10-09 15:25:12 +00:00
< li > The < b > time zone display name data< / b > is under the directory
2019-10-09 18:55:08 +00:00
< tt > icudt66b/zone< / tt > , as a set of < tt > ".res"< / tt > files.< / li >
2010-03-05 00:22:07 +00:00
2010-12-01 17:15:46 +00:00
< li > The < b > character property data< / b > and default < b > unicode collation algorithm
2019-10-09 18:55:08 +00:00
(UCA) data< / b > is found under the directory < tt > icudt66b< / tt > , as a set of
2010-12-01 17:15:46 +00:00
< tt > ".icu"< / tt > files. < / li >
2019-10-09 18:55:08 +00:00
< li > The < b > normalization data< / b > is found under the directory < tt > icudt66b< / tt > ,
2010-12-01 17:15:46 +00:00
as a set of < tt > ".nrm"< / tt > files. < / li >
2010-03-05 00:22:07 +00:00
2007-08-30 23:51:41 +00:00
< li > The < b > character set converter data< / b > is under the directory
2019-10-09 18:55:08 +00:00
< tt > icudt66b< / tt > , as a set of < tt > ".cnv"< / tt > files. These files are
2007-08-30 23:51:41 +00:00
currently included only in icu-charset.jar.< / li >
2010-03-05 00:22:07 +00:00
2010-03-08 18:41:59 +00:00
< li > The < b > time zone rule data< / b > is under the directory
2019-10-09 18:55:08 +00:00
< tt > icudt66b< / tt > , as < tt > zoneinfo64.res< / tt > .< / li >
2014-10-09 15:25:12 +00:00
2019-10-09 18:55:08 +00:00
< li > The < b > holiday data< / b > is under the directory < tt > icudt66b< / tt > ,
2014-10-09 15:25:12 +00:00
as a set of < tt > ".class"< / tt > files, named < tt > "HolidayBundle_"< / tt >
followed by the locale ID.< / li >
2010-03-05 00:22:07 +00:00
2004-06-15 22:59:13 +00:00
< / ul >
2002-08-15 17:39:50 +00:00
< p >
2004-06-15 22:59:13 +00:00
Some of the data files alias or otherwise reference data from other
data files. One reason for this is because some locale names have
2004-11-09 23:35:01 +00:00
changed. For example, < tt > he_IL< / tt > used to be < tt > iw_IL< / tt > . In
2004-06-15 22:59:13 +00:00
order to support both names but not duplicate the data, one of the
2004-11-09 23:35:01 +00:00
resource files refers to the other file's data. In other cases, a
2004-06-15 22:59:13 +00:00
file may alias a portion of another file's data in order to save
2004-11-09 23:35:01 +00:00
space. Currently ICU4J provides no tool for revealing these
dependencies.< / p >
2005-07-26 21:44:58 +00:00
< blockquote > < strong > Note:< / strong > Java's < code > Locale< / code > class
2004-11-09 23:35:01 +00:00
silently converts the language code < tt > "he"< / tt > to < tt > "iw"< / tt >
2005-07-26 21:44:58 +00:00
when you construct the Locale (for versions of Java through Java 5). Thus
2004-06-15 22:59:13 +00:00
Java cannot be used to locate resources that use the < tt > "he"< / tt >
2004-11-09 23:35:01 +00:00
language code. ICU, on the other hand, does not perform this
2004-06-15 22:59:13 +00:00
conversion in ULocale, and instead uses aliasing in the locale data to
represent the same set of data under different locale
ids.< / blockquote >
2002-08-15 17:39:50 +00:00
< p >
2004-06-15 22:59:13 +00:00
Resource files that use locale ids form a hierarchy, with up to four
2004-11-09 23:35:01 +00:00
levels: a root, language, region (country), and variant. Searches for
2004-06-15 22:59:13 +00:00
locale data attempt to match as far down the hierarchy as possible,
for example, < tt > "he_IL"< / tt > will match < tt > he_IL< / tt > , but
< tt > "he_US"< / tt > will match < tt > he< / tt > (since there is no < tt > US< / tt >
2004-11-09 23:35:01 +00:00
variant for he, and < tt > "xx_YY< / tt > will match root (the
2004-06-15 22:59:13 +00:00
default fallback locale) since there is no < tt > xx< / tt > language code
2004-11-09 23:35:01 +00:00
in the locale hierarchy. Again, see
2004-06-15 22:59:13 +00:00
< code > java.util.ResourceBundle< / code > for more information.
2002-08-15 17:39:50 +00:00
< / p >
< p >
2004-06-15 22:59:13 +00:00
< strong > Currently ICU4J provides no tool for revealing these
dependencies< / strong > between data files, so trimming the data
2004-11-09 23:35:01 +00:00
directly in the ICU4J project is a hit-or-miss affair. The key point
2004-06-15 22:59:13 +00:00
when you remove data is to make sure to remove all dependencies on
2004-11-09 23:35:01 +00:00
that data as well. For example, if you remove < tt > he.res< / tt > , you
2004-06-15 22:59:13 +00:00
need to remove < tt > he_IL.res< / tt > , since it is lower in the hierarchy,
and you must remove iw.res, since it references < tt > he.res< / tt > , and
< tt > iw_IL.res< / tt > , since it depends on it (and also references
< tt > he_IL.res< / tt > ).
2002-08-15 17:39:50 +00:00
< / p >
< p >
Unfortunately, the jar tool in the JDK provides no way to remove items
2004-11-09 23:35:01 +00:00
from a jar file. Thus you have to extract the resources, remove the
2002-08-15 17:39:50 +00:00
ones you don't want, and then create a new jar file with the remining
2004-11-09 23:35:01 +00:00
resources. See the jar tool information for how to do this. Before
2002-08-15 17:39:50 +00:00
'rejaring' the files, be sure to thoroughly test your application with
the remaining resources, making sure each required resource is
present.
< / p >
2016-09-29 19:51:52 +00:00
< h3 class = "doc" > Using additional resource files with ICU4J< / h3 >
2004-11-09 23:35:01 +00:00
< blockquote >
< table cellpadding = "3" frame = "border" rules = "none" width = "50%" >
< tbody >
< tr >
< td > < b > < font color = "red" size = "+1" > Warning:< / font > Resource
file formats can change across releases of ICU4J!< / b > < / td >
< / tr >
< tr >
< td > The format of ICU4J resources is not part of the API.
Clients who develop their own resources for use with ICU4J should be
prepared to
regenerate them when they move to new releases of ICU4J.< / td >
< / tr >
< / tbody >
< / table >
< / blockquote >
2002-08-15 17:39:50 +00:00
< p >
2005-07-26 21:44:58 +00:00
We are still developing ICU4J's resource mechanism. Currently it
is not possible to mix icu's new binary < tt > .res< / tt >
2004-11-09 23:35:01 +00:00
resources
with traditional java-style < tt > .class< / tt > or < tt > .txt< / tt >
resources. We might
allow for this in a future release, but since the resource data and
format is not formally
supported, you run the risk of incompatibilities with future releases
of ICU4J.
2002-08-15 17:39:50 +00:00
< / p >
< p >
2004-06-15 22:59:13 +00:00
Resource data in ICU4J is checked in to the repository as a jar file
2010-12-01 17:15:46 +00:00
containing the resource binaries, < tt > $icu4j_root/main/shared/data/icudata.jar< / tt > .
This means that inspecting the contents of these resources is difficult.
2004-11-09 23:35:01 +00:00
They currently are compiled from ICU4C < tt > .txt< / tt > file data. You
2004-06-15 22:59:13 +00:00
can view the contents of the ICU4C text resource files to understand
the contents of the ICU4J resources.
2002-08-15 17:39:50 +00:00
< / p >
< p >
2004-11-09 23:35:01 +00:00
The files in < tt > icudata.jar< / tt > get extracted to < tt > com/ibm/icu/impl/data< / tt >
2010-12-01 17:15:46 +00:00
in the build output directory by some build targets.
2002-08-15 17:39:50 +00:00
< / p >
2016-09-29 19:51:52 +00:00
< h3 class = "doc" > < a name = "resourcesICU4C" > Building ICU4J Resources from ICU4C< / a > < / h3 >
2017-04-11 16:26:57 +00:00
ICU4J data is built by ICU4C tools. Please see "icu4j-readme.txt" in icu4c/source/data for the procedures.
2006-02-27 17:52:48 +00:00
< h5 > Generating Data from CLDR < / h5 >
2010-10-29 18:55:11 +00:00
< I > Note: This procedure assumes that all 3 sources are present< / I >
2006-02-27 17:52:48 +00:00
< ol >
2019-08-29 22:26:00 +00:00
< li > Checkout or download CLDR version 'release-36'< / li >
2020-02-12 21:48:29 +00:00
< li > Checkout ICU with tag 'release-66-1'< / li >
2017-04-11 16:26:57 +00:00
< li > cd to icu4c/source/data directory< / li >
< li > Follow the instructions in icu4c/source/data/cldr-icu-readme.txt< / li >
2010-10-29 18:55:11 +00:00
< li > Rebuild ICU4C with the newly generated data.< / li >
< li > Run ICU4C tests to verify that the new data is good.< / li >
2017-04-11 16:26:57 +00:00
< li > Build ICU4J data from ICU4C data by following the procedures in icu4j/source/data/icu4j-readme.txt< / li >
< li > cd to icu4j dir< / li >
2006-02-27 17:52:48 +00:00
< li > Build and test icu4j< / li >
< / ol >
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "timezone" > < / a > About ICU4J Time Zone< / h2 >
2016-09-29 19:51:52 +00:00
< p > ICU4J library includes the latest time zone data, as of the release date.
However, time zone data is frequently updated in response
2008-06-30 18:08:59 +00:00
to changes made by local governments around the world. If you need to update
the time zone data, please refer the ICU user guide topic
2010-12-01 17:15:46 +00:00
< a href = "http://userguide.icu-project.org/datetime/timezone#TOC-Updating-the-Time-Zone-Data" > Updating the Time Zone Data< / a > .< / p >
2016-09-29 19:51:52 +00:00
< p > You can optionally configure ICU4J date and time
2008-06-30 18:08:59 +00:00
service classes to use underlying JDK TimeZone implementation (see the ICU4J API reference
< a href = "http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/TimeZone.html" > TimeZone< / a >
for the details). When this configuration is enabled, ICU's own time zone data
won't be used and you have to get time zone data patches from the JRE vendor.< / p >
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "WhereToFindMore" > < / a > Where to Find More
Information< / h2 >
2009-05-01 04:20:46 +00:00
< p > < a href = "http://www.icu-project.org/" > http://www.icu-project.org/< / a >
is the home page of International Components for Unicode development project< / p >
2016-09-29 19:51:52 +00:00
2014-02-26 20:45:41 +00:00
< h2 class = "doc" > < a name = "SubmittingComments" > < / a > Submitting Comments,
2004-11-09 23:35:01 +00:00
Requesting Features and
2014-02-26 20:45:41 +00:00
Reporting Bugs< / h2 >
2005-02-18 00:19:33 +00:00
< p > Your comments are important to making ICU4J successful. We are
2009-05-01 04:20:46 +00:00
committed to investigate any bug reports or suggestions,
and will use your feedback to help plan future releases.< / p >
< p > To submit comments, request features and report bugs,
please see < a href = "http://www.icu-project.org/bugs.html" > ICU bug database
information< / a > or contact us through the < a
2007-08-04 02:07:57 +00:00
href="http://www.icu-project.org/contacts.html">ICU Support
2009-05-01 04:20:46 +00:00
mailing list< / a > . While we are not able to respond individually to each comment, we do
2004-11-09 23:35:01 +00:00
review all comments.< / p >
< br >
< br >
2004-02-27 20:06:52 +00:00
< h2 > Thank you for your interest in ICU4J!< / h2 >
2004-11-09 23:35:01 +00:00
< br >
< hr align = "center" size = "2" width = "100%" >
2016-07-01 17:12:44 +00:00
< p > < I > < font size = "-1" > © 2016 and later: Unicode, Inc. and others.< br >
License & terms of use: < a href = "http://www.unicode.org/copyright.html#License" > http://www.unicode.org/copyright.html#License< / a >
2007-08-30 23:51:41 +00:00
< / font > < / I > < / p >
2000-03-15 21:37:48 +00:00
< / body >
< / html >