# Packaging using Antenna

Prerequisites:

- Antenna library available from http://antenna.sourceforge.net/ correctly configured in the Basic Java ME Preferences.
- A supported Sun Wireless Toolkit configured in the Platform Components.

If the appropriate prerequisites are not met, an error dialog will be displayed.

Export the Antenna build files from the Mobiles Tools for Java project menu. Choose "Export Antenna Build Files". The following files will be generated:

- build.xml - The root build file that may be executed using standard Ant execution. This file is a skeleton that wraps the mtj-build.xml file. This file may be modified and will not be overwritten during subsequent export operations.
- mtj-build.xml - This build file handles the calls to the Antenna library and contains all of the classpath information generated from the Eclipse projects involved in the export. This file should not be altered, as it will be overwritten during each subsequent export operation. This file should be regenerated whenever the project classpath is updated.
- mtj-build.properties - This file contains a set of properties that define the locations and preferences concerning the build. This file should not be altered, as it will be overwritten during each subsequent export operation. The properties in this file may be overridden by creating a user-build.properties in the same directory as the generated files. Properties defined in the user-build.properties will override the values in the mtj-build.properties.
- *.symbols - Files with a name "<Configuration_Name>.symbols", such as "DefaultColorPhone.symbols", "A910.symbols". These files contain symbols for each configurations for Antenna preprocessor to do preprocess. Do not change this files directly, if you want to change symbols for a configuration, please do that via Configuration Edit Dialog, and then re-export Antenna build files.

Right click on exported build.xml file, and select Run as -> Ant Build, then refresh the project. You will find packages in deployment folder.