Introduction #

This article describes how to set an environment variable, specifically ANT_OPTS.

If you are getting this error:

The environment variable ANT_OPTS is not set.

Please set it to the recommended value of "-Xms256M -Xmx512M".

It means that your environment variable is not set and that you need to set it.

Set ANT_OPTS #

Windows #

  1. Go into your System Properties from the Control Panel
  2. Click "New" in your User Variables
  3. Variable name: "ANT_OPTS"
  4. Variable value: "-Xms256M -Xmx512M"

Setting ANT_OPTS in ant.bat #

  1. Edit the ant.bat file in your ant home folder.
  2. Add the following line at the top of the file:
set ANT_OPTS=-Xms256M -Xmx512M

Ubuntu #

Edit /.bashrc or /.bash_profile to include:

ANT_OPTS="-Xms256M -Xmx512M"
export ANT_OPTS

Make sure to exit the command prompt to realize the changes.

Related Articles #

Setting up the Extension Environment

Development Environment (General)

0 Attachments
23204 Views
Average (1 Vote)
Comments

Showing 0 Comments