FeaturesPluginsDocs & SupportCommunityPartners

How to build localized NetBeans 6.0

This document demonstrate building localized NetBeans. To build NetBeans, you need ant 1.7, JDK1.5 and cvs client. Also it requires disk space.

Setup your environment and get NetBeans IDE sources

Checkout necessary files from cvs.

Please note that we need to use

  • JDK1.5
  • ant 1.7
(ant 1.7 is installed under <netbeans6.0installeddir>/java1/ant.)

Assuming <BUILD_HOME> is the top directory where you checkout the sources.

Build IDE

You need to build entire IDE before building localized IDE.
% cd <BUILD_HOME>/nbbuild
ant build-nozip

NetBeans IDE will be build under nbbuild/netbeans. You can start your NetBeans from nbbuild/netbeans/bin/netbeans.

Prepare localized files under translatedfiles/src

The default checkout will not get translation files of translatedfiles/src. Please get them manually. We're working in release60 branch.

% cd <BUILD_HOME>
% cvs co -r release60 translatedfiles/src

If you have translated files, please put them into the directory.

Build localized jar files


% cd <BUILD_HOME>/nbbuild
% ant -Dlocales=<lang> build-nozip-ml
For example, use "ja" for Japanese.
% ant -Dlocales=ja build-nozip-ml

*_<lang>.jar files will be also created under nbbuild/netbeans. Now it's ready to start localized NetBeans.

Run NetBeans


After you make sure your environment, you can start NetBeans without any option. If you use proper localized locale, NetBeans will be started in your language.

% <BUILD_HOME>/nbbuild/netbeans/bin/netbeans

If you don't have a proper locale on your system, you can use --locale option to specify the language.

% <BUILD_HOME>/nbbuild/netbeans/bin/netbeans --locale <language[:country[:variant]]>

For example, in pt_BR case, you can use the following.

% <BUILD_HOME>/nbbuild/netbeans/bin/netbeans --locale pt:BR

Distribute localized jar files

You don't need to distribute entire netbeans/ directory. Only *_<lang>.jar are necessary. So you can distribute only these files to your team members. Unzip these files into your NetBeans installed directory.


Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Virtual Box - full virtualizer  Open ESB - The Open Enterprise Service Bus Powered by