How to set ant_opts in ubuntu

Edit ~/.bashrc

Open terminal and execute>

$ sudo gedit .bashrc



Above command open .bashrc file in edit mode.

Now add the below two lines:


ANT_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
export ANT_OPTS


Now save the file and close terminal.


Enjoy......

Comments